commit af8f3ad324fcbf96ec66b9b240dc615d79da87ef
parent f61e5ed1408d621ba9e581eb5ad85eaa1d65814f
Author: default <nobody@localhost>
Date: Sun, 16 Oct 2022 00:29:49 +0200
Don't set the admirer as the referrer if it's a Like.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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));