From 05d8078a1860a50f6db00e90fe99321fb544d843 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 19 Feb 2017 12:27:43 +0900 Subject: [PATCH] [Client] Fix bug --- src/web/app/common/scripts/get-post-summary.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/web/app/common/scripts/get-post-summary.js b/src/web/app/common/scripts/get-post-summary.js index b7fe4104c..5e8319b61 100644 --- a/src/web/app/common/scripts/get-post-summary.js +++ b/src/web/app/common/scripts/get-post-summary.js @@ -14,8 +14,7 @@ const summarize = post => { // 返信のとき if (post.reply_to_id) { if (post.reply_to) { - replySummary = summarize(post.reply_to); - summary += ` RE: ${replySummary}`; + summary += ` RE: ${summarize(post.reply_to)}`; } else { summary += ' RE: ...'; } @@ -24,8 +23,7 @@ const summarize = post => { // Repostのとき if (post.repost_id) { if (post.repost) { - repostSummary = summarize(post.repost); - summary += ` RP: ${repostSummary}`; + summary += ` RP: ${summarize(post.repost)}`; } else { summary += ' RP: ...'; }