non-JS view doesn't show post action content

AI-generated summary

The discussion addresses an issue where the non-JavaScript view of a post does not display post action content, such as topic closures or tag updates. supermathie reported that actions like ‘updating tags’ are visible but lack descriptive text, which affects clarity. codinghorror acknowledged the need for improvement and directed the fix to @vinothkannans. vinothkannans implemented a solution by adding the post action text without relative timestamps to avoid SEO issues, suggesting alternatives like ‘closed this topic at’ with new translation keys. codinghorror approved the approach, emphasizing simplicity and avoiding extra translation overhead.

While using a non-JS browser for unrelated reasons, I noticed that the view includes post actions but doesn’t say what they are (post #3 in the below screenshots):

(it also doesn’t show that the topic is closed, etc.)

🔒 Updating tags (as a moderator) shouldn't push a topic back to the top of the feed would look good :slight_smile:

5 Likes

Ah yes we should improve this for release @vinothkannans

4 Likes

It’s done. I just added the post action text without relative time. If I include it like “closed 9 hours ago” then the post content will change every hour/day. It’s not good for SEO I think.

post-action

Intead we can use the text “closed this topic at”, “opened this topic at”, etc., In this case it will require a new set of translation keys.

https://github.com/discourse/discourse/commit/3d52f690b3e4241d0a46f1fb1941c5da3ca27c8d

I’m not sure why we need this. We’re not going to display it in search engine result titles, right?

5 Likes

Great! Simplest solution that doesn’t require any extra translations is fine.

4 Likes