summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
Diffstat (limited to 'html.c')
-rw-r--r--html.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/html.c b/html.c
index d6df61d..1e2248c 100644
--- a/html.c
+++ b/html.c
@@ -930,6 +930,19 @@ int html_post_handler(d_char *req, char *q_path, d_char *payload, int p_size,
930 } 930 }
931 else 931 else
932 if (strcmp(action, L("Delete")) == 0) { 932 if (strcmp(action, L("Delete")) == 0) {
933 /* delete an entry */
934 if (xs_startswith(id, snac.actor)) {
935 /* it's a post by us: generate a delete */
936 xs *msg = msg_delete(&snac, id);
937
938 post(&snac, msg);
939
940 snac_log(&snac, xs_fmt("posted tombstone for %s", id));
941 }
942
943 timeline_del(&snac, id);
944
945 snac_log(&snac, xs_fmt("deleted entry %s", id));
933 } 946 }
934 else 947 else
935 status = 404; 948 status = 404;