fix function name
Some checks failed
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/lint-backend Pipeline was successful
ci/woodpecker/push/lint-foundkey-js Pipeline was successful
ci/woodpecker/push/lint-client Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/lint-client Pipeline failed
ci/woodpecker/pr/lint-backend Pipeline was successful
ci/woodpecker/pr/lint-foundkey-js Pipeline was successful
ci/woodpecker/pr/test Pipeline failed

This commit is contained in:
Johann150 2022-10-11 21:26:20 +02:00
parent 0b8fa2665c
commit 7cd11e7afd
Signed by: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -139,11 +139,11 @@ async function deliverToConcerned(user: { id: ILocalUser['id']; host: null; }, n
manager.addDirectRecipe(remoteUser);
}
if (['public', 'home', 'followers'].contains(note.visibility)) {
if (['public', 'home', 'followers'].includes(note.visibility)) {
manager.addFollowersRecipe();
}
if (['public', 'home'].contains(note.visibility)) {
if (['public', 'home'].includes(note.visibility)) {
manager.addEveryone();
}