diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-08-11 22:36:59 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-08-11 22:36:59 +0900 |
| commit | 42c4ea38ccf09ba37ff552e37778ba1b702b781c (patch) | |
| tree | 39bffcf6c87fe7f0b31778b71993be2a72c0881d /src/services | |
| parent | Merge branch 'develop' (diff) | |
| parent | 12.86.0 (diff) | |
| download | misskey-42c4ea38ccf09ba37ff552e37778ba1b702b781c.tar.gz misskey-42c4ea38ccf09ba37ff552e37778ba1b702b781c.tar.bz2 misskey-42c4ea38ccf09ba37ff552e37778ba1b702b781c.zip | |
Merge branch 'develop'
Diffstat (limited to 'src/services')
| -rw-r--r-- | src/services/send-email-notification.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/services/send-email-notification.ts b/src/services/send-email-notification.ts index b475585129..ad17429516 100644 --- a/src/services/send-email-notification.ts +++ b/src/services/send-email-notification.ts @@ -16,12 +16,13 @@ async function follow(userId: User['id'], follower: User) { sendEmail(userProfile.email, i18n.t('_email._follow.title'), `${follower.name} (@${getAcct(follower)})`, `${follower.name} (@${getAcct(follower)})`); } -async function receiveFollowRequest(userId: User['id'], args: {}) { +async function receiveFollowRequest(userId: User['id'], follower: User) { const userProfile = await UserProfiles.findOneOrFail({ userId: userId }); if (!userProfile.email || !userProfile.emailNotificationTypes.includes('receiveFollowRequest')) return; const locale = locales[userProfile.lang || 'ja-JP']; const i18n = new I18n(locale); - sendEmail(userProfile.email, i18n.t('_email._receiveFollowRequest.title'), 'test', 'test'); + // TODO: render user information html + sendEmail(userProfile.email, i18n.t('_email._receiveFollowRequest.title'), `${follower.name} (@${getAcct(follower)})`, `${follower.name} (@${getAcct(follower)})`); } export const sendEmailNotification = { |