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 +++++----- src/client/app/common/scripts/parse-search-query.ts | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src/client/app/common/scripts') 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' }; diff --git a/src/client/app/common/scripts/parse-search-query.ts b/src/client/app/common/scripts/parse-search-query.ts index 4f09d2b93f..5f6ae3320a 100644 --- a/src/client/app/common/scripts/parse-search-query.ts +++ b/src/client/app/common/scripts/parse-search-query.ts @@ -19,8 +19,8 @@ export default function(qs: string) { case 'reply': q['reply'] = value == 'null' ? null : value == 'true'; break; - case 'repost': - q['repost'] = value == 'null' ? null : value == 'true'; + case 'renote': + q['renote'] = value == 'null' ? null : value == 'true'; break; case 'media': q['media'] = value == 'null' ? null : value == 'true'; -- cgit v1.2.3-freya