diff options
| author | default <nobody@localhost> | 2025-01-11 01:39:37 +0100 |
|---|---|---|
| committer | default <nobody@localhost> | 2025-01-11 01:39:37 +0100 |
| commit | ff44142b30ceded6ed7db24d033296b0966edb27 (patch) | |
| tree | 7a5e93d3183391d12ef6ea1d3837b1212204ecb2 /activitypub.c | |
| parent | 6a5ea9783aac7947fed8b40cc78f67e11bb9a99c (diff) | |
Moved creation of "quiet public" posts to msg_note(), where it belongs.
Diffstat (limited to 'activitypub.c')
| -rw-r--r-- | activitypub.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/activitypub.c b/activitypub.c index 4966482..369423d 100644 --- a/activitypub.c +++ b/activitypub.c @@ -1486,7 +1486,7 @@ xs_dict *msg_note(snac *snac, const xs_str *content, const xs_val *rcpts, xs_list *p; const xs_val *v; - /* FIXME: implement scopes 2 and 3 */ + /* FIXME: implement scope 3 */ int priv = scope == 1; if (rcpts == NULL) @@ -1606,6 +1606,12 @@ xs_dict *msg_note(snac *snac, const xs_str *content, const xs_val *rcpts, } } + if (scope == 2) { + /* Mastodon's "quiet public": add public address to cc */ + if (xs_list_in(cc, public_address) == -1) + cc = xs_list_append(cc, public_address); + } + else /* no recipients? must be for everybody */ if (!priv && xs_list_len(to) == 0) to = xs_list_append(to, public_address); |