Skip to content

Commit

Permalink
chore: ちょっとコード順おかしかったので修正
Browse files Browse the repository at this point in the history
  • Loading branch information
EbiseLutica committed Feb 17, 2024
1 parent a27af00 commit 5c6236b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/backend/src/core/NoteCreateService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -359,9 +359,9 @@ export class NoteCreateService implements OnApplicationShutdown {
mentionedUsers = data.apMentions ?? await this.extractMentionedUsers(user, combinedTokens);
}

// #region Shrimpia
const willCauseNotification = mentionedUsers.length > 0 || data.reply?.userHost === null || data.renote?.userHost === null;

// #region Shrimpia
if (user.host != null && willCauseNotification) {
const userEntity = await this.usersRepository.findOneBy({ id: user.id });
if ((userEntity?.followersCount ?? 0) === 0) {
Expand Down

0 comments on commit 5c6236b

Please sign in to comment.