summaryrefslogtreecommitdiff
path: root/src/web/app/common/scripts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-02-19 12:27:43 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-02-19 12:27:43 +0900
commit05d8078a1860a50f6db00e90fe99321fb544d843 (patch)
tree5988a0357acffe604489c60ca8a437535a0e0f28 /src/web/app/common/scripts
parentMerge pull request #184 from syuilo/greenkeeper/rimraf-2.6.0 (diff)
downloadsharkey-05d8078a1860a50f6db00e90fe99321fb544d843.tar.gz
sharkey-05d8078a1860a50f6db00e90fe99321fb544d843.tar.bz2
sharkey-05d8078a1860a50f6db00e90fe99321fb544d843.zip
[Client] Fix bug
Diffstat (limited to 'src/web/app/common/scripts')
-rw-r--r--src/web/app/common/scripts/get-post-summary.js6
1 files 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 b7fe4104c6..5e8319b61c 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: ...';
}