summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-08-11 21:08:05 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2021-08-11 21:08:05 +0900
commitb2e5ade5ac92a5001d50415219129e050d3247e6 (patch)
treef56414cab208daf8344c8bde3eeb471ea7671e16
parent:art: (diff)
downloadmisskey-b2e5ade5ac92a5001d50415219129e050d3247e6.tar.gz
misskey-b2e5ade5ac92a5001d50415219129e050d3247e6.tar.bz2
misskey-b2e5ade5ac92a5001d50415219129e050d3247e6.zip
フォロー通知のEメール通知を修正
-rw-r--r--CHANGELOG.md1
-rw-r--r--src/services/send-email-notification.ts5
2 files changed, 4 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 753c37e134..c85afa04b8 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,3 +6,4 @@
### Bugfixes
- ハッシュタグ入力が空のときに#が付くのを修正
+- フォロー通知のEメール通知を修正
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 = {