Files
discourse/frontend
Natalie Tay e39c0d5d96 FIX: Only save post if post content changed when editing title (#36817)
This bug happens when a user is attempting to update topic metadata
while viewing a post.

When updating the topic's tags, `editPost()` calls both `Topic.update()`
and `post.save()`. The topic saves fine, but the `post.save()` is
unnecessary since content didn't change and can fail with permission
errors in certain contexts (e.g. viewing a translated topic).


Meta topic:
https://meta.discourse.org/t/editing-title-category-tags-brings-up-full-editor-saving-says-you-are-not-permitted-to-view-the-requested-resource/391459
2025-12-22 11:49:57 +08:00
..