commit 8a71e2e
default
·
2022-11-24 12:15:32 +0000 UTC
parent 694ae65
Only log the object_admire() if it's new.
1 files changed,
+4,
-3
M
data.c
M
data.c
+4,
-3
1@@ -503,11 +503,12 @@ int object_admire(const char *id, const char *actor, int like)
2
3 fn = xs_replace_i(fn, ".json", like ? "_l.idx" : "_a.idx");
4
5- srv_debug(0, xs_fmt("object_admire (%s) %s %s", like ? "Like" : "Announce", actor, fn));
6-
7- if (!index_in(fn, actor))
8+ if (!index_in(fn, actor)) {
9 status = index_add(fn, actor);
10
11+ srv_debug(0, xs_fmt("object_admire (%s) %s %s", like ? "Like" : "Announce", actor, fn));
12+ }
13+
14 return status;
15 }
16