From af8f3ad324fcbf96ec66b9b240dc615d79da87ef Mon Sep 17 00:00:00 2001 From: default Date: Sun, 16 Oct 2022 00:29:49 +0200 Subject: [PATCH] Don't set the admirer as the referrer if it's a Like. --- data.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));