mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-10 03:50:38 +03:00
In object_unadmire(), don't call index_gc() if index_del() did nothing.
This commit is contained in:
parent
e362dfc356
commit
a7bd9b63e4
2
data.c
2
data.c
@ -916,6 +916,8 @@ int object_unadmire(const char *id, const char *actor, int like)
|
|||||||
fn = xs_replace_i(fn, ".json", like ? "_l.idx" : "_a.idx");
|
fn = xs_replace_i(fn, ".json", like ? "_l.idx" : "_a.idx");
|
||||||
|
|
||||||
status = index_del(fn, actor);
|
status = index_del(fn, actor);
|
||||||
|
|
||||||
|
if (valid_status(status))
|
||||||
index_gc(fn);
|
index_gc(fn);
|
||||||
|
|
||||||
srv_debug(0,
|
srv_debug(0,
|
||||||
|
Loading…
Reference in New Issue
Block a user