Skip to content

Commit

Permalink
lint: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
anatawa12 authored Jun 29, 2024
1 parent 42ce4fc commit 72bc9b3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/backend/src/core/NoteCreateService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -380,8 +380,7 @@ export class NoteCreateService implements OnApplicationShutdown {
const isAllowedToCreateNotification = () => {
const targetUserIds: string[][] = [];
targetUserIds.push(mentionedUsers.filter(x => x.host == null).map(x => x.id));
if (data.visibility === 'specified' && data.visibleUsers != null)
targetUserIds.push(data.visibleUsers.filter(x => x.host == null).map(x => x.id));
if (data.visibility === 'specified' && data.visibleUsers != null) targetUserIds.push(data.visibleUsers.filter(x => x.host == null).map(x => x.id));
if (data.reply != null && data.reply.userHost == null) targetUserIds.push([data.reply.userId]);
if (this.isRenote(data) && this.isQuote(data) && data.renote.userHost === null) targetUserIds.push([data.renote.userId]);
const allowedIds = new Set(meta.nirilaAllowedUnfamiliarRemoteUserIds);
Expand Down

0 comments on commit 72bc9b3

Please sign in to comment.