"Flickering" of posts in journal topics

Environment

Discourse Version: 2.7.7

Plugin Commit: Improve post stream index handling · paviliondev/discourse-journal@475d855 · GitHub

Steps to Reproduce

Our users are reporting that in some cases journal topic posts are “flickering” in the same manner as when you are scrolling down and new posts are loaded.
I have had experience the issue before on a previous plugin version, but I haven’t able to reproduce it yet on this one.

Will follow up once I caught it.
until then i am posting the error log which appeared one minute before our user reported the issue here:
https://forum.cannabisanbauen.net/t/neu-private-growreports-fuer-stammgrower-journal-beitragsansicht-in-betaphase-bugs-hier-melden/20704/39?u=jrgong

Example

https://forum.cannabisanbauen.net/t/6-hanfwerk-zurueck-zu-den-wurzeln/21189/14

Logs

TypeError: Cannot read property ‘indexOf’ of undefined
at https://forum.cannabisanbauen.net/assets/plugins/discourse-journal-4a42e73a3f24b3ebf2d21e3e27370c68e978ecc78896217a2129a80a708b9476.js:1:6432
at Array.forEach ()
at t.html (https://forum.cannabisanbauen.net/assets/plugins/discourse-journal-4a42e73a3f24b3ebf2d21e3e27370c68e978ecc78896217a2129a80a708b9476.js:1:6370)
at t. [as html] (https://forum.cannabisanbauen.net/assets/application-4d2ba037d2c27496918cbbb0005cf8e20df223d30470e979f5aad27938d06cb3.js:1:2846233)
at t.value (https://forum.cannabisanbauen.net/assets/application-4d2ba037d2c27496918cbbb0005cf8e20df223d30470e979f5aad27938d06cb3.js:1:2852495)
at t.value (https://forum.cannabisanbauen.net/assets/application-4d2ba037d2c27496918cbbb0005cf8e20df223d30470e979f5aad27938d06cb3.js:1:2848602)
at s (https://forum.cannabisanbauen.net/assets/vendor-dde8b5f2dd41adf78c88e7719455c3a5d4db146cb96d783a2dc1ed978892f200.js:1:164430)
at t.exports (https://forum.cannabisanbauen.net/assets/vendor-dde8b5f2dd41adf78c88e7719455c3a5d4db146cb96d783a2dc1ed978892f200.js:1:164571)
at p (https://forum.cannabisanbauen.net/assets/vendor-dde8b5f2dd41adf78c88e7719455c3a5d4db146cb96d783a2dc1ed978892f200.js:1:169559)
at g (https://forum.cannabisanbauen.net/assets/vendor-dde8b5f2dd41adf78c88e7719455c3a5d4db146cb96d783a2dc1ed978892f200.js:1:167375)

1 Like

Update: User submitted a video of the issue

In addition when scrolling down in the affected post, it’s jumping back to the top of the post while doing it on chrome desktop:

The issue disappears when expanding the deleted topics/comments in between.
Edit: My suspicion is if there are collapsed comments, then a few comments are deleted so that it’s below the set up threshold number, the bug appears.

Log:

TypeError: Cannot read property ‘indexOf’ of undefined
at https://forum.cannabisanbauen.net/assets/plugins/discourse-journal-4a42e73a3f24b3ebf2d21e3e27370c68e978ecc78896217a2129a80a708b9476.js:1:6432
at Array.forEach ()
at t.html (https://forum.cannabisanbauen.net/assets/plugins/discourse-journal-4a42e73a3f24b3ebf2d21e3e27370c68e978ecc78896217a2129a80a708b9476.js:1:6370)
at t. [as html] (https://forum.cannabisanbauen.net/assets/application-4d2ba037d2c27496918cbbb0005cf8e20df223d30470e979f5aad27938d06cb3.js:1:2846233)
at t.value (https://forum.cannabisanbauen.net/assets/application-4d2ba037d2c27496918cbbb0005cf8e20df223d30470e979f5aad27938d06cb3.js:1:2852495)
at t.value (https://forum.cannabisanbauen.net/assets/application-4d2ba037d2c27496918cbbb0005cf8e20df223d30470e979f5aad27938d06cb3.js:1:2848602)
at s (https://forum.cannabisanbauen.net/assets/vendor-dde8b5f2dd41adf78c88e7719455c3a5d4db146cb96d783a2dc1ed978892f200.js:1:164430)
at t.exports (https://forum.cannabisanbauen.net/assets/vendor-dde8b5f2dd41adf78c88e7719455c3a5d4db146cb96d783a2dc1ed978892f200.js:1:164571)
at p (https://forum.cannabisanbauen.net/assets/vendor-dde8b5f2dd41adf78c88e7719455c3a5d4db146cb96d783a2dc1ed978892f200.js:1:169559)
at g (https://forum.cannabisanbauen.net/assets/vendor-dde8b5f2dd41adf78c88e7719455c3a5d4db146cb96d783a2dc1ed978892f200.js:1:167375)

1 Like