Skip to content

Commit 1b3adcc

Browse files
committed
コーディングミスを修正
1 parent c68e931 commit 1b3adcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/backend/src/core/NoteCreateService.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ export class NoteCreateService implements OnApplicationShutdown {
360360
}
361361

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

0 commit comments

Comments
 (0)