diff options
author | default <nobody@localhost> | 2022-10-16 00:29:49 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2022-10-16 00:29:49 +0200 |
commit | af8f3ad324fcbf96ec66b9b240dc615d79da87ef (patch) | |
tree | 7860e59a2efb8d4c1c64ff7488643b111ff269a8 | |
parent | f61e5ed1408d621ba9e581eb5ad85eaa1d65814f (diff) |
Don't set the admirer as the referrer if it's a Like.
-rw-r--r-- | data.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)); |