Skip to content

Commit

Permalink
Merge branch '2024.2.0.papi.1' into mogeko-monster
Browse files Browse the repository at this point in the history
  • Loading branch information
n1lsqn committed Feb 18, 2024
2 parents 2d20173 + 394a3d0 commit b61f806
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/backend/src/core/NoteCreateService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,8 @@ export class NoteCreateService implements OnApplicationShutdown {
}

// #region *.n1l.dev
const willCauseNotification = mentionedUsers.length > 0 || data.reply?.userHost === null;
// ローカル宛てのメンション、リプライの発行元が、ローカルユーザーにフォローされていない場合は投稿を拒否する
const willCauseNotification = mentionedUsers.filter(u => u.host === null).length > 0 || (data.reply != null && data.reply.userHost === null)

Check failure on line 364 in packages/backend/src/core/NoteCreateService.ts

View workflow job for this annotation

GitHub Actions / lint (backend)

Missing semicolon

const instance = await this.metaService.fetch(true);

Expand Down

0 comments on commit b61f806

Please sign in to comment.