Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
コーディングミスを修正
Browse files Browse the repository at this point in the history
EbiseLutica committed Feb 17, 2024

Unverified

No user is associated with the committer email.
1 parent c68e931 commit 1b3adcc
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
@@ -360,7 +360,7 @@ export class NoteCreateService implements OnApplicationShutdown {
}

// #region Shrimpia
if (user.host != null && mentionedUsers.some(u => u.host !== null)) {
if (user.host != null && mentionedUsers.length > 0) {
const userEntity = await this.usersRepository.findOneByOrFail({ id: user.id });
if (userEntity.followersCount === 0) {
throw new Error('Temporarily, notes including mentions from remote users which no followers are not allowed');

0 comments on commit 1b3adcc

Please sign in to comment.