summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-10-16 00:29:49 +0200
committerdefault <nobody@localhost>2022-10-16 00:29:49 +0200
commitaf8f3ad324fcbf96ec66b9b240dc615d79da87ef (patch)
tree7860e59a2efb8d4c1c64ff7488643b111ff269a8
parentf61e5ed1408d621ba9e581eb5ad85eaa1d65814f (diff)
Don't set the admirer as the referrer if it's a Like.
-rw-r--r--data.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/data.c b/data.c
index c6225e6..62b7236 100644
--- a/data.c
+++ b/data.c
@@ -602,7 +602,7 @@ void timeline_admire(snac *snac, char *id, char *admirer, int like)
ofn = xs_replace_i(ofn, "/timeline/", "/local/");
unlink(ofn);
- _timeline_write(snac, id, msg, xs_dict_get(meta, "parent"), admirer);
+ _timeline_write(snac, id, msg, xs_dict_get(meta, "parent"), like ? NULL : admirer);
snac_debug(snac, 1, xs_fmt("timeline_admire (%s) %s %s",
like ? "Like" : "Announce", id, admirer));