From a1b490afa756a71b9cef4afa424575bc223bc612 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 8 Apr 2018 02:30:37 +0900 Subject: Post --> Note Closes #1411 --- src/client/app/common/scripts/compose-notification.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/client/app/common/scripts/compose-notification.ts') diff --git a/src/client/app/common/scripts/compose-notification.ts b/src/client/app/common/scripts/compose-notification.ts index e99d502960..c19b1c5ad0 100644 --- a/src/client/app/common/scripts/compose-notification.ts +++ b/src/client/app/common/scripts/compose-notification.ts @@ -1,4 +1,4 @@ -import getPostSummary from '../../../../renderers/get-post-summary'; +import getNoteSummary from '../../../../renderers/get-note-summary'; import getReactionEmoji from '../../../../renderers/get-reaction-emoji'; import getUserName from '../../../../renderers/get-user-name'; @@ -23,28 +23,28 @@ export default function(type, data): Notification { case 'mention': return { title: `${getUserName(data.user)}さんから:`, - body: getPostSummary(data), + body: getNoteSummary(data), icon: data.user.avatarUrl + '?thumbnail&size=64' }; case 'reply': return { title: `${getUserName(data.user)}さんから返信:`, - body: getPostSummary(data), + body: getNoteSummary(data), icon: data.user.avatarUrl + '?thumbnail&size=64' }; case 'quote': return { title: `${getUserName(data.user)}さんが引用:`, - body: getPostSummary(data), + body: getNoteSummary(data), icon: data.user.avatarUrl + '?thumbnail&size=64' }; case 'reaction': return { title: `${getUserName(data.user)}: ${getReactionEmoji(data.reaction)}:`, - body: getPostSummary(data.post), + body: getNoteSummary(data.note), icon: data.user.avatarUrl + '?thumbnail&size=64' }; -- cgit v1.2.3-freya