summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar grunfink2025-12-19 15:27:51 +0100
committerGravatar grunfink2025-12-19 15:27:51 +0100
commita97d3ac11628cd9244f97d2304d972abfb2b4824 (patch)
tree22660b65fcd59bb8ae25d171733e3bb64e318ca9
parentUpdated language files. (diff)
downloadsnac2-a97d3ac11628cd9244f97d2304d972abfb2b4824.tar.gz
snac2-a97d3ac11628cd9244f97d2304d972abfb2b4824.tar.xz
snac2-a97d3ac11628cd9244f97d2304d972abfb2b4824.zip
Reindex tags when editing a post.
Tags that were deleted in the post message are not deleted, though.
-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,
5141 /* overwrite object, not updating the indexes */ 5141 /* overwrite object, not updating the indexes */
5142 object_add_ow(edit_id, msg); 5142 object_add_ow(edit_id, msg);
5143 5143
5144 /* index tags */
5145 tag_index(edit_id, msg);
5146
5144 /* update message */ 5147 /* update message */
5145 c_msg = msg_update(&snac, msg); 5148 c_msg = msg_update(&snac, msg);
5146 } 5149 }