# Quotes pointing to deleted post gets stuck loading

**URL:** https://meta.discourse.org/t/quotes-pointing-to-deleted-post-gets-stuck-loading/27710
**Category:** Feature
**Created:** [17. April 2015 um 19:26 UTC](https://meta.discourse.org/t/quotes-pointing-to-deleted-post-gets-stuck-loading/27710 "2015-04-17T19:26:14Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![erlend\_sh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erlend_sh/32/119475_2.png) [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)
#### Post date: [17. April 2015 um 19:26 UTC](https://meta.discourse.org/t/quotes-pointing-to-deleted-post-gets-stuck-loading/27710/1 "2015-04-17T19:26:14Z")

</div>

Go to the following post:

> [@Make a multi-language forum](https://meta.discourse.org/t/make-a-multi-language-forum/18501/12):
>
> I think the work on tagging will be very useful in this effort. [https://meta.discourse.org/t/early-preview-of-the-new-tagging-plugin/23713/38?u=resplin](https://meta.discourse.org/t/early-preview-of-the-new-tagging-plugin/23713/38)

Try load the full quote and you’ll get the `Loading...` text and it’ll stay there. You can’t toggle it back either; it’s stuck in that operation.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [17. April 2015 um 23:06 UTC](https://meta.discourse.org/t/quotes-pointing-to-deleted-post-gets-stuck-loading/27710/2 "2015-04-17T23:06:42Z")

</div>

This is more or less by design.. the only improvement would be for “loading…” to say “post was deleted” instead. So it’s a feature req.

---

<div class="post-metadata">

### Author: ![erlend\_sh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erlend_sh/32/119475_2.png) [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)
#### Post date: [17. April 2015 um 23:15 UTC](https://meta.discourse.org/t/quotes-pointing-to-deleted-post-gets-stuck-loading/27710/3 "2015-04-17T23:15:22Z")

</div>

Well, clicking the toggle also gets you into an unrecoverable state (without refresh) where you can’t toggle back to the on-page quote. That’s a minor bug imo.

As for how to keep users from encountering it, I suppose the simplest fix of all would be to not display the toggle-arrow if the topic no longer exists.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [17. April 2015 um 23:22 UTC](https://meta.discourse.org/t/quotes-pointing-to-deleted-post-gets-stuck-loading/27710/4 "2015-04-17T23:22:03Z")

</div>

Can’t know that until we check on click.

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [17. April 2015 um 23:47 UTC](https://meta.discourse.org/t/quotes-pointing-to-deleted-post-gets-stuck-loading/27710/5 "2015-04-17T23:47:57Z")

</div>

Okay, but the code can tell when the request failed, and go back to the original state. We could fix that.

---

<div class="post-metadata">

### Author: ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)
#### Post date: [31. März 2017 um 13:25 UTC](https://meta.discourse.org/t/quotes-pointing-to-deleted-post-gets-stuck-loading/27710/6 "2017-03-31T13:25:21Z")

</div>

This “issue” is still here on Meta (example in the OP of this topic [https://meta.discourse.org/t/cross-origin-framing/26984](https://meta.discourse.org/t/cross-origin-framing/26984)) exactly as described by @erlend_sh

> [@erlend\_sh](#):
>
> Try load the full quote and you’ll get the Loading… text and it’ll stay there. You can’t toggle it back either; it’s stuck in that operation.

I think that new user can be really in difficult to understand what’s happening, the only way to see what is wrong is open the browser console and look at the error `Not Found`.

Change `Loading...` with `This post was deleted`, as @codinghorror said above, is a good compromise to me.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [31. März 2017 um 19:42 UTC](https://meta.discourse.org/t/quotes-pointing-to-deleted-post-gets-stuck-loading/27710/7 "2017-03-31T19:42:16Z")

</div>

Sure can you make that change @eviltrout? This one is long overdue.

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [24. April 2017 um 17:39 UTC](https://meta.discourse.org/t/quotes-pointing-to-deleted-post-gets-stuck-loading/27710/9 "2017-04-24T17:39:47Z")

</div>

I think this was done? If I try as anonymous I get a trash icon instead.

 ![](https://global.discourse-cdn.com/meta/original/3X/c/8/c86e4dea8d1f76c6f4523bbc12dc590b0e053ef0.png)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [24. April 2017 um 17:40 UTC](https://meta.discourse.org/t/quotes-pointing-to-deleted-post-gets-stuck-loading/27710/10 "2017-04-24T17:40:31Z")

</div>

Good ol’ @neil did it!

---

<div class="post-metadata">

### Author: ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)
#### Post date: [20. Oktober 2017 um 13:23 UTC](https://meta.discourse.org/t/quotes-pointing-to-deleted-post-gets-stuck-loading/27710/13 "2017-10-20T13:23:22Z")

</div>

Es scheint, als hätten wir hier eine Art Regression. Schauen Sie sich den eingebetteten Link [Manually update Discourse and Docker image to latest - #112](https://meta.discourse.org/t/how-do-i-manually-update-discourse-and-docker-image-to-latest/23325/112?u=trash) von Dean an: Dort wird ein endloses „Laden“ angezeigt. Es funktioniert noch bei einfachen Zitaten, die einen Link enthalten, aber nicht für verlinkte Themen/Beiträge, die gelöscht wurden.

 ![Uc4wgdh](https://global.discourse-cdn.com/meta/original/4X/f/2/f/f2f2d6aafaea420c719acd45c09e7d6a1c4adfd8.png)  
EDIT: Wenn man sich den Originalbeitrag dieses Themas ansieht, scheint es, als würde es mit einem Link in einem Zitat nicht funktionieren. Es wird zwar weniger als eine Sekunde lang „Laden“ angezeigt, aber das „Mülleimer“-Symbol, das darauf hinweist, dass der verlinkte Text/Beitrag gelöscht wurde, wird nicht angezeigt. In diesem Fall klickt ein normaler Nutzer tendenziell auf den Link im Zitat und landet auf einer 404-Seite.

Es funktioniert also nur bei sehr einfachen Textzitaten ohne enthaltene Links.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [20. Oktober 2017 um 22:18 UTC](https://meta.discourse.org/t/quotes-pointing-to-deleted-post-gets-stuck-loading/27710/14 "2017-10-20T22:18:19Z")

</div>

Is this fixable easily @eviltrout? Maybe take a peek Monday.

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [23. Oktober 2017 um 17:42 UTC](https://meta.discourse.org/t/quotes-pointing-to-deleted-post-gets-stuck-loading/27710/15 "2017-10-23T17:42:46Z")

</div>

Looks like the bug was where the post was in a deleted topic (but the post was not deleted) it would return InvalidAccess instead of a 404. This fixes it and shows the trash can again.

[https://github.com/discourse/discourse/commit/89a1b34480e89e8dc1d47c749f08ed1225a173e4](https://github.com/discourse/discourse/commit/89a1b34480e89e8dc1d47c749f08ed1225a173e4)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [23. Oktober 2017 um 18:19 UTC](https://meta.discourse.org/t/quotes-pointing-to-deleted-post-gets-stuck-loading/27710/16 "2017-10-23T18:19:46Z")

</div>


