mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-09 19:50:26 +03:00
Don't send public admirations of non-public messages.
This commit is contained in:
parent
49f2f498de
commit
751211684f
@ -471,7 +471,9 @@ d_char *msg_admiration(snac *snac, char *object, char *type)
|
||||
|
||||
msg = msg_base(snac, type, "@dummy", snac->actor, "@now", object);
|
||||
|
||||
rcpts = xs_list_append(rcpts, public_address);
|
||||
if (is_msg_public(snac, a_msg))
|
||||
rcpts = xs_list_append(rcpts, public_address);
|
||||
|
||||
rcpts = xs_list_append(rcpts, xs_dict_get(a_msg, "attributedTo"));
|
||||
|
||||
msg = xs_dict_append(msg, "to", rcpts);
|
||||
|
Loading…
Reference in New Issue
Block a user