0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/apps
Kevin Ansfield 9da9757f1f
Changed in-reply-to snippet to show [hidden/removed] (#21731)
closes https://linear.app/ghost/issue/PLG-263/

When hiding a reply as an Admin, if there were other replies that referenced it then those snippets would still show the hidden content because there was no immediate update in the comments-ui client. This made it look like hidden content would still be visible even though at the API level snippets were entirely removed so no other user would see it.

- added client-side handling so in-reply-to snippets immediately show `[hidden/removed]` which means we don't have to fetch every reply from the API
- updated the API to use `[hidden/removed]` as the snippet when referencing a hidden reply instead of removing all `in_reply_to_` data
  - keeping `in_reply_to_id` and `in_reply_to_snippet` means comments-ui still displays the replied-to reference text (albeit not directly showing the API-supplied string so `[hidden/removed]` can be translated)
  - returns the full `in_reply_to_snippet` text for Admin API requests so that showing a comment that has been loaded from the API can immediately show the contents for any displayed references to the comment
2024-12-02 23:12:01 +00:00
..
admin-x-activitypub Fixed WordPress article feature image not showing (#21779) 2024-12-02 15:50:27 +00:00
admin-x-demo 🌐 Updated packages for improved i18n support (#21218) 2024-10-03 22:27:16 +00:00
admin-x-design-system Updated drawer so you can interact with page behind it (#21778) 2024-12-02 13:12:05 +00:00
admin-x-framework Fixed WordPress article feature image not showing (#21779) 2024-12-02 15:50:27 +00:00
admin-x-settings 🔥 Removed UI for AMP (#21762) 2024-12-02 12:12:52 +00:00
announcement-bar Added Dev Container setup (#21279) 2024-10-24 11:15:08 -07:00
comments-ui Changed in-reply-to snippet to show [hidden/removed] (#21731) 2024-12-02 23:12:01 +00:00
portal 🐛 Fixed unclear newsletter (un)subscribe modal (#21739) 2024-11-28 10:42:43 +01:00
signup-form Bumped signup form package (#21631) 2024-11-15 19:11:29 +00:00
sodo-search Bumped portal and search packages (#21630) 2024-11-15 19:10:29 +00:00