Merge pull request 'fix: federating "Boost to Followers"' (#9778) from naskya/calckey:fix/followers-only-boost into develop

Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9778
This commit is contained in:
Kainoa Kanter 2023-03-29 08:16:12 +00:00
commit b86513e83e
1 changed files with 3 additions and 0 deletions

View File

@ -13,6 +13,9 @@ export default (object: any, note: Note) => {
} else if (note.visibility === "home") { } else if (note.visibility === "home") {
to = [`${attributedTo}/followers`]; to = [`${attributedTo}/followers`];
cc = ["https://www.w3.org/ns/activitystreams#Public"]; cc = ["https://www.w3.org/ns/activitystreams#Public"];
} else if (note.visibility === 'followers') {
to = [`${attributedTo}/followers`];
cc = [];
} else { } else {
return null; return null;
} }