enchanted-sword / ch-utils

Utilities for cohost
https://cohost.org/chutils
GNU General Public License v3.0
19 stars 4 forks source link

Post-specific buttons stop appearing after 4 posts. #5

Closed wheelsbot7 closed 6 months ago

wheelsbot7 commented 6 months ago

Post-specific buttons stop appearing after 4 posts.

Whenever I transition to a new page, the first 4 posts have the comment dropdown and view source buttons like normal, but the rest of the posts don't have them. It sometimes happens after 5 or 6 posts, but I'm unsure what causes it to do that.

Here's a screenshot of the same post twice. One with the expected buttons, one without. firefox_saWWbrIWbH

wheelsbot7 commented 6 months ago

Update: I disabled custom timestamps and the buttons returned.

enchanted-sword commented 6 months ago

I just checked, and while a malformed JSON syntax invokes the fallback as expected, an invalid locale value in the timestamp override field throws a luxon-specific error that seems to also be halting MutationObserver updates to other modules. There was an extra singlequote in the default value that I didn't notice until after the update went live, so if you set it to a valid value such as { "locale":"en" } or just leave that field empty it should work as expected. I'll fix the fallback for that today.

enchanted-sword commented 6 months ago

Should be fixed in v1.3.1