summaryrefslogtreecommitdiff
path: root/packages/backend/src/core
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2023-01-08 10:54:45 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2023-01-08 10:54:45 +0900
commit2e2ed1385fbae6c102156a08fce2defb642e52c5 (patch)
treeb1e9053cf40d82c3542a73952e3c9cc88baad570 /packages/backend/src/core
parenttweak note componsnt (diff)
downloadsharkey-2e2ed1385fbae6c102156a08fce2defb642e52c5.tar.gz
sharkey-2e2ed1385fbae6c102156a08fce2defb642e52c5.tar.bz2
sharkey-2e2ed1385fbae6c102156a08fce2defb642e52c5.zip
delete pollVote notification
Diffstat (limited to 'packages/backend/src/core')
-rw-r--r--packages/backend/src/core/PollService.ts7
-rw-r--r--packages/backend/src/core/entities/NotificationEntityService.ts2
2 files changed, 1 insertions, 8 deletions
diff --git a/packages/backend/src/core/PollService.ts b/packages/backend/src/core/PollService.ts
index 3cc9b0cc9b..abc598ab76 100644
--- a/packages/backend/src/core/PollService.ts
+++ b/packages/backend/src/core/PollService.ts
@@ -92,13 +92,6 @@ export class PollService {
choice: choice,
userId: user.id,
});
-
- // Notify
- this.createNotificationService.createNotification(note.userId, 'pollVote', {
- notifierId: user.id,
- noteId: note.id,
- choice: choice,
- });
}
@bindThis
diff --git a/packages/backend/src/core/entities/NotificationEntityService.ts b/packages/backend/src/core/entities/NotificationEntityService.ts
index 208d653877..a1c2c9cffb 100644
--- a/packages/backend/src/core/entities/NotificationEntityService.ts
+++ b/packages/backend/src/core/entities/NotificationEntityService.ts
@@ -98,7 +98,7 @@ export class NotificationEntityService implements OnModuleInit {
}),
reaction: notification.reaction,
} : {}),
- ...(notification.type === 'pollVote' ? {
+ ...(notification.type === 'pollVote' ? { // TODO: そのうち消す
note: this.noteEntityService.pack(notification.note ?? notification.noteId!, { id: notification.notifieeId }, {
detail: true,
_hint_: options._hintForEachNotes_,