fix: allow announces with followers visibility

This commit is contained in:
Kagami Sascha Rosylight 2023-03-12 04:11:37 +01:00 committed by naskya
parent 74a9e374d6
commit 7acb2b7c09
No known key found for this signature in database
GPG key ID: 164DFF24E2D40139

View file

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