diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2020-01-30 04:37:25 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-30 04:37:25 +0900 |
| commit | f6154dc0af1a0d65819e87240f4385f9573095cb (patch) | |
| tree | 699a5ca07d6727b7f8497d4769f25d6d62f94b5a /src/services/create-notification.ts | |
| parent | Add Event activity-type support (#5785) (diff) | |
| download | misskey-f6154dc0af1a0d65819e87240f4385f9573095cb.tar.gz misskey-f6154dc0af1a0d65819e87240f4385f9573095cb.tar.bz2 misskey-f6154dc0af1a0d65819e87240f4385f9573095cb.zip | |
v12 (#5712)
Co-authored-by: MeiMei <30769358+mei23@users.noreply.github.com>
Co-authored-by: Satsuki Yanagi <17376330+u1-liquid@users.noreply.github.com>
Diffstat (limited to 'src/services/create-notification.ts')
| -rw-r--r-- | src/services/create-notification.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/services/create-notification.ts b/src/services/create-notification.ts index 5bff8adfd4..f9cf04dc69 100644 --- a/src/services/create-notification.ts +++ b/src/services/create-notification.ts @@ -5,6 +5,7 @@ import { genId } from '../misc/gen-id'; import { User } from '../models/entities/user'; import { Note } from '../models/entities/note'; import { Notification } from '../models/entities/notification'; +import { FollowRequest } from '../models/entities/follow-request'; export async function createNotification( notifieeId: User['id'], @@ -14,6 +15,7 @@ export async function createNotification( noteId?: Note['id']; reaction?: string; choice?: number; + followRequestId?: FollowRequest['id']; } ) { if (notifieeId === notifierId) { @@ -33,6 +35,7 @@ export async function createNotification( if (content.noteId) data.noteId = content.noteId; if (content.reaction) data.reaction = content.reaction; if (content.choice) data.choice = content.choice; + if (content.followRequestId) data.followRequestId = content.followRequestId; } // Create notification |