fix: allow announces with followers visibility
This commit is contained in:
parent
74a9e374d6
commit
7acb2b7c09
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue