mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-25 14:35:04 +00:00
Don't send public admirations of non-public messages.
This commit is contained in:
parent
49f2f498de
commit
751211684f
1 changed files with 3 additions and 1 deletions
|
@ -471,7 +471,9 @@ d_char *msg_admiration(snac *snac, char *object, char *type)
|
||||||
|
|
||||||
msg = msg_base(snac, type, "@dummy", snac->actor, "@now", object);
|
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"));
|
rcpts = xs_list_append(rcpts, xs_dict_get(a_msg, "attributedTo"));
|
||||||
|
|
||||||
msg = xs_dict_append(msg, "to", rcpts);
|
msg = xs_dict_append(msg, "to", rcpts);
|
||||||
|
|
Loading…
Reference in a new issue