mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 13:25:04 +00:00
Only log the object_admire() if it's new.
This commit is contained in:
parent
694ae655cb
commit
8a71e2e557
1 changed files with 4 additions and 3 deletions
7
data.c
7
data.c
|
@ -503,11 +503,12 @@ int object_admire(const char *id, const char *actor, int like)
|
|||
|
||||
fn = xs_replace_i(fn, ".json", like ? "_l.idx" : "_a.idx");
|
||||
|
||||
srv_debug(0, xs_fmt("object_admire (%s) %s %s", like ? "Like" : "Announce", actor, fn));
|
||||
|
||||
if (!index_in(fn, actor))
|
||||
if (!index_in(fn, actor)) {
|
||||
status = index_add(fn, actor);
|
||||
|
||||
srv_debug(0, xs_fmt("object_admire (%s) %s %s", like ? "Like" : "Announce", actor, fn));
|
||||
}
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue