diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-02-17 15:15:36 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2023-02-17 15:15:36 +0900 |
| commit | 0e1b5d6f14060a26e27a6af31f63aa45cfab49fc (patch) | |
| tree | a98c5095aa2d7d428500fac9cab5195f1d9a7feb /packages/backend/src/core | |
| parent | refactor: fix types (diff) | |
| download | misskey-0e1b5d6f14060a26e27a6af31f63aa45cfab49fc.tar.gz misskey-0e1b5d6f14060a26e27a6af31f63aa45cfab49fc.tar.bz2 misskey-0e1b5d6f14060a26e27a6af31f63aa45cfab49fc.zip | |
refactor: fix types
Diffstat (limited to 'packages/backend/src/core')
| -rw-r--r-- | packages/backend/src/core/NotificationService.ts | 3 | ||||
| -rw-r--r-- | packages/backend/src/core/activitypub/ApRendererService.ts | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/packages/backend/src/core/NotificationService.ts b/packages/backend/src/core/NotificationService.ts index c54c84a02b..88173c2307 100644 --- a/packages/backend/src/core/NotificationService.ts +++ b/packages/backend/src/core/NotificationService.ts @@ -5,9 +5,9 @@ import type { NotificationsRepository } from '@/models/index.js'; import type { User } from '@/models/entities/User.js'; import type { Notification } from '@/models/entities/Notification.js'; import { UserEntityService } from '@/core/entities/UserEntityService.js'; +import { bindThis } from '@/decorators.js'; import { GlobalEventService } from './GlobalEventService.js'; import { PushNotificationService } from './PushNotificationService.js'; -import { bindThis } from '@/decorators.js'; @Injectable() export class NotificationService { @@ -65,7 +65,6 @@ export class NotificationService { @bindThis private postReadNotifications(userId: User['id'], notificationIds: Notification['id'][]) { - this.globalEventService.publishMainStream(userId, 'readNotifications', notificationIds); return this.pushNotificationService.pushNotification(userId, 'readNotifications', { notificationIds }); } } diff --git a/packages/backend/src/core/activitypub/ApRendererService.ts b/packages/backend/src/core/activitypub/ApRendererService.ts index 52abc25edc..6a1f233bd8 100644 --- a/packages/backend/src/core/activitypub/ApRendererService.ts +++ b/packages/backend/src/core/activitypub/ApRendererService.ts @@ -178,9 +178,8 @@ export class ApRendererService { } // to anonymise reporters, the reporting actor must be a system user - // object has to be a uri or array of uris @bindThis - public renderFlag(user: LocalUser, object: IObject | string | string[], content: string): IFlag { + public renderFlag(user: LocalUser, object: IObject | string, content: string): IFlag { return { type: 'Flag', actor: `${this.config.url}/users/${user.id}`, |