mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-15 01:55:03 +00:00
Don't call object_del() from timeline_del().
Only delete from each user's cache, not from the global database.
This commit is contained in:
parent
8e7efad27f
commit
d03b988c99
2 changed files with 6 additions and 4 deletions
3
data.c
3
data.c
|
@ -762,10 +762,9 @@ int timeline_del(snac *snac, char *id)
|
|||
ret = 200;
|
||||
}
|
||||
|
||||
if (valid_status(object_del(id))) {
|
||||
/* delete from the user's caches */
|
||||
object_user_cache_del(snac, id, "public");
|
||||
object_user_cache_del(snac, id, "private");
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
3
html.c
3
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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue