# Weird loading behavior when viewing this topic https://meta.discourse.org/t/66812

**URL:** https://meta.discourse.org/t/weird-loading-behavior-when-viewing-this-topic-https-meta-discourse-org-t-66812/257899
**Category:** Bug
**Created:** [March 13, 2023, 2:35am UTC](https://meta.discourse.org/t/weird-loading-behavior-when-viewing-this-topic-https-meta-discourse-org-t-66812/257899 "2023-03-13T02:35:58Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![anon59994034](https://avatars.discourse-cdn.com/v4/letter/a/b5a626/32.png) [@anon59994034](https://meta.discourse.org/u/anon59994034)
#### Post date: [March 13, 2023, 2:35am UTC](https://meta.discourse.org/t/weird-loading-behavior-when-viewing-this-topic-https-meta-discourse-org-t-66812/257899/1 "2023-03-13T02:35:59Z")

</div>

repro steps:  
(tested in firefox 110.0, chrome 110.0.5481.104, edge 110.0.1587.50)

1. **log out**
2. open one of the first several posts in the topic  
[Quick image resizing and markdown image dimensions](https://meta.discourse.org/t/quick-image-resizing-and-markdown-image-dimensions/66812)
3. open one of the remaining posts and then keep scrolling down  
[Quick image resizing and markdown image dimensions - #20 by elijah](https://meta.discourse.org/t/quick-image-resizing-and-markdown-image-dimensions/66812/20)

Opening the first several posts results in a blank topic

 ![image](https://global.discourse-cdn.com/meta/original/4X/c/9/2/c92bede305667c76219e570818c77863a1eaa190.png)

Opening the remaining posts and then keep scrolling down, will keep loading the posts repeatedly  
(pay attention to the “very good” image)

Console output:

 ![image](https://global.discourse-cdn.com/meta/original/4X/9/0/8/908b5292beed636a1d24314750e14ae66cd83c93.png)

---

<div class="post-metadata">

### Author: ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)
#### Post date: [March 13, 2023, 3:38am UTC](https://meta.discourse.org/t/weird-loading-behavior-when-viewing-this-topic-https-meta-discourse-org-t-66812/257899/2 "2023-03-13T03:38:37Z")

</div>

All I need to do is bring it up in an incognito tab, yeah something’s wrong:

 ![Screenshot_2023-03-12-23-37-15-91_40deb401b9ffe8e1df2f1cc5ba480b12](https://global.discourse-cdn.com/meta/original/4X/e/3/9/e39d929d00a6c5e3b138c6800fd460704f391310.jpeg)

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [March 13, 2023, 3:53am UTC](https://meta.discourse.org/t/weird-loading-behavior-when-viewing-this-topic-https-meta-discourse-org-t-66812/257899/3 "2023-03-13T03:53:36Z")

</div>

cc @andrei

Do we need a guard for nil currentUser here?

---

<div class="post-metadata">

### Author: ![andrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/andrei/32/205142_2.png) [@andrei](https://meta.discourse.org/u/andrei)
#### Post date: [March 13, 2023, 11:05am UTC](https://meta.discourse.org/t/weird-loading-behavior-when-viewing-this-topic-https-meta-discourse-org-t-66812/257899/4 "2023-03-13T11:05:03Z")

</div>

I’m able to reproduce it, working on the fix now.

---

<div class="post-metadata">

### Author: ![andrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/andrei/32/205142_2.png) [@andrei](https://meta.discourse.org/u/andrei)
#### Post date: [March 13, 2023, 3:17pm UTC](https://meta.discourse.org/t/weird-loading-behavior-when-viewing-this-topic-https-meta-discourse-org-t-66812/257899/6 "2023-03-13T15:17:58Z")

</div>

This happens when:

1. Some post of a topic contains a mention, and
2. The mentioned user has user status set, and
3. That status has an end date

If an anonymous user tries to load such a topic, this error happens.

And here is the fix:  
[https://github.com/discourse/discourse/pull/20660](https://github.com/discourse/discourse/pull/20660)

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [March 18, 2023, 8:00am UTC](https://meta.discourse.org/t/weird-loading-behavior-when-viewing-this-topic-https-meta-discourse-org-t-66812/257899/7 "2023-03-18T08:00:27Z")

</div>

This topic was automatically closed after 4 days. New replies are no longer allowed.
