Skip to content

Commit

Permalink
fix: 条件が逆
Browse files Browse the repository at this point in the history
  • Loading branch information
anatawa12 committed Jun 30, 2024
1 parent cf079a8 commit 7977365
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/backend/src/core/NoteCreateService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -386,12 +386,12 @@ export class NoteCreateService implements OnApplicationShutdown {
const allowedIds = new Set(meta.nirilaAllowedUnfamiliarRemoteUserIds);
for (const targetUserIds1 of targetUserIds) {
for (const targetUserId of targetUserIds1) {
if (allowedIds.has(targetUserId)) {
return true;
if (!allowedIds.has(targetUserId)) {
return false;
}
}
}
return false;
return true;
};

if (meta.nirilaBlockMentionsFromUnfamiliarRemoteUsers && user.host !== null && willCauseNotification && !isAllowedToCreateNotification()) {
Expand Down

0 comments on commit 7977365

Please sign in to comment.