fix(backend/ApRendererService): allow announces with visibility: followers (#10291)

* fix(backend/ApRendererService): allow announces with visibility: followers

* Update CHANGELOG.md

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
This commit is contained in:
Kagami Sascha Rosylight
2023-03-12 04:11:37 +01:00
committed by GitHub
parent 31488da40c
commit 57cac0aa23
4 changed files with 42 additions and 0 deletions

View File

@ -91,6 +91,9 @@ export class ApRendererService {
} 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 {
throw new Error('renderAnnounce: cannot render non-public note');
}