mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 05:15:04 +00:00
In object_unadmire(), don't call index_gc() if index_del() did nothing.
This commit is contained in:
parent
e362dfc356
commit
a7bd9b63e4
1 changed files with 3 additions and 1 deletions
4
data.c
4
data.c
|
@ -916,7 +916,9 @@ int object_unadmire(const char *id, const char *actor, int like)
|
|||
fn = xs_replace_i(fn, ".json", like ? "_l.idx" : "_a.idx");
|
||||
|
||||
status = index_del(fn, actor);
|
||||
index_gc(fn);
|
||||
|
||||
if (valid_status(status))
|
||||
index_gc(fn);
|
||||
|
||||
srv_debug(0,
|
||||
xs_fmt("object_unadmire (%s) %s %s %d", like ? "Like" : "Announce", actor, fn, status));
|
||||
|
|
Loading…
Reference in a new issue