Don't send public admirations of non-public messages.

This commit is contained in:
default 2023-03-06 11:16:15 +01:00
parent 49f2f498de
commit 751211684f

View file

@ -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);