瀏覽代碼

Reindex tags when editing a post.

Tags that were deleted in the post message are not deleted, though.
grunfink 7 月之前
父節點
當前提交
a97d3ac116
共有 1 個文件被更改,包括 3 次插入0 次删除
  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);
                     }