snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit d03b988c9944c543ab5a8edacd03dfe30c595ba5
parent 8e7efad27fc06ba1613d8fb34185ab20204bdb09
Author: default <nobody@localhost>
Date:   Sat, 26 Nov 2022 13:34:43 +0100

Don't call object_del() from timeline_del().

Only delete from each user's cache, not from the global database.

Diffstat:
Mdata.c | 7+++----
Mhtml.c | 3+++
2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/data.c b/data.c @@ -762,10 +762,9 @@ int timeline_del(snac *snac, char *id) ret = 200; } - if (valid_status(object_del(id))) { - object_user_cache_del(snac, id, "public"); - object_user_cache_del(snac, id, "private"); - } + /* delete from the user's caches */ + object_user_cache_del(snac, id, "public"); + object_user_cache_del(snac, id, "private"); return ret; } diff --git a/html.c b/html.c @@ -1341,6 +1341,9 @@ int html_post_handler(d_char *req, char *q_path, d_char *payload, int p_size, post(&snac, msg); + /* FIXME: also post this Tombstone to people + that Announce'd it */ + snac_log(&snac, xs_fmt("posted tombstone for %s", id)); }