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 3bfa8e3df3
commit 4e78a4e0b0

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;
}