commit a97d3ac

grunfink  ·  2025-12-19 14:27:51 +0000 UTC
parent 34735ff
Reindex tags when editing a post.

Tags that were deleted in the post message are not deleted, though.
1 files changed,  +3, -0
M html.c
M html.c
+3, -0
 1@@ -5141,6 +5141,9 @@ int html_post_handler(const xs_dict *req, const char *q_path,
 2                         /* overwrite object, not updating the indexes */
 3                         object_add_ow(edit_id, msg);
 4 
 5+                        /* index tags */
 6+                        tag_index(edit_id, msg);
 7+
 8                         /* update message */
 9                         c_msg = msg_update(&snac, msg);
10                     }