Browse Source

Reindex tags when editing a post.

Tags that were deleted in the post message are not deleted, though.
grunfink 7 months ago
parent
commit
a97d3ac116
1 changed files with 3 additions and 0 deletions
  1. 3 0
      html.c

+ 3 - 0
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);
                     }