summaryrefslogtreecommitdiff
path: root/packages/backend/src/core/NoteCreateService.ts
diff options
context:
space:
mode:
authortamaina <tamaina@hotmail.co.jp>2023-02-14 04:09:03 +0000
committertamaina <tamaina@hotmail.co.jp>2023-02-14 04:09:03 +0000
commitb7b8fd4b59c7aa80285c683e8a16244002c9b744 (patch)
treedfd16f0d1242a955b5dc85a3e4c568e6f1a8843d /packages/backend/src/core/NoteCreateService.ts
parentfix(server): HttpRequestService.sendでは常にUser-Agentを含むように (diff)
parentUpdate Docker GHA (#9920) (diff)
downloadsharkey-b7b8fd4b59c7aa80285c683e8a16244002c9b744.tar.gz
sharkey-b7b8fd4b59c7aa80285c683e8a16244002c9b744.tar.bz2
sharkey-b7b8fd4b59c7aa80285c683e8a16244002c9b744.zip
Merge branch 'develop' of https://github.com/misskey-dev/misskey into develop
Diffstat (limited to 'packages/backend/src/core/NoteCreateService.ts')
-rw-r--r--packages/backend/src/core/NoteCreateService.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/backend/src/core/NoteCreateService.ts b/packages/backend/src/core/NoteCreateService.ts
index 04c057f6cd..2484cfc6c1 100644
--- a/packages/backend/src/core/NoteCreateService.ts
+++ b/packages/backend/src/core/NoteCreateService.ts
@@ -11,7 +11,7 @@ import type { DriveFile } from '@/models/entities/DriveFile.js';
import type { App } from '@/models/entities/App.js';
import { concat } from '@/misc/prelude/array.js';
import { IdService } from '@/core/IdService.js';
-import type { User, ILocalUser, IRemoteUser } from '@/models/entities/User.js';
+import type { User, LocalUser, RemoteUser } from '@/models/entities/User.js';
import type { IPoll } from '@/models/entities/Poll.js';
import { Poll } from '@/models/entities/Poll.js';
import { isDuplicateKeyValueError } from '@/misc/is-duplicate-key-value-error.js';
@@ -52,7 +52,7 @@ class NotificationManager {
private notifier: { id: User['id']; };
private note: Note;
private queue: {
- target: ILocalUser['id'];
+ target: LocalUser['id'];
reason: NotificationType;
}[];
@@ -68,7 +68,7 @@ class NotificationManager {
}
@bindThis
- public push(notifiee: ILocalUser['id'], reason: NotificationType) {
+ public push(notifiee: LocalUser['id'], reason: NotificationType) {
// 自分自身へは通知しない
if (this.notifier.id === notifiee) return;
@@ -605,7 +605,7 @@ export class NoteCreateService {
// メンションされたリモートユーザーに配送
for (const u of mentionedUsers.filter(u => this.userEntityService.isRemoteUser(u))) {
- dm.addDirectRecipe(u as IRemoteUser);
+ dm.addDirectRecipe(u as RemoteUser);
}
// 投稿がリプライかつ投稿者がローカルユーザーかつリプライ先の投稿の投稿者がリモートユーザーなら配送