aboutsummaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorgrunfink <grunfink@comam.es>2025-12-19 15:27:51 +0100
committergrunfink <grunfink@comam.es>2025-12-19 15:27:51 +0100
commita97d3ac11628cd9244f97d2304d972abfb2b4824 (patch)
tree22660b65fcd59bb8ae25d171733e3bb64e318ca9 /html.c
parent34735ff0422ef92de7812baf31b1f3707cdcf483 (diff)
Reindex tags when editing a post.
Tags that were deleted in the post message are not deleted, though.
Diffstat (limited to 'html.c')
-rw-r--r--html.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/html.c b/html.c
index f6c93c7..0b84e56 100644
--- a/html.c
+++ b/html.c
@@ -5141,6 +5141,9 @@ int html_post_handler(const xs_dict *req, const char *q_path,
/* overwrite object, not updating the indexes */
object_add_ow(edit_id, msg);
+ /* index tags */
+ tag_index(edit_id, msg);
+
/* update message */
c_msg = msg_update(&snac, msg);
}