summaryrefslogtreecommitdiff
path: root/src/web/app/common/scripts/get-post-summary.ls
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-02-15 00:17:03 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-02-15 00:17:03 +0900
commit974c787a7c1c65b20e1a2eeceef876c1449096b3 (patch)
treebacdd535413d9620a4847f7804cf71aa7af15cbe /src/web/app/common/scripts/get-post-summary.ls
parentTypo (diff)
downloadsharkey-974c787a7c1c65b20e1a2eeceef876c1449096b3.tar.gz
sharkey-974c787a7c1c65b20e1a2eeceef876c1449096b3.tar.bz2
sharkey-974c787a7c1c65b20e1a2eeceef876c1449096b3.zip
[Client] いい感じに
Diffstat (limited to 'src/web/app/common/scripts/get-post-summary.ls')
-rw-r--r--src/web/app/common/scripts/get-post-summary.ls6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/web/app/common/scripts/get-post-summary.ls b/src/web/app/common/scripts/get-post-summary.ls
index 0150d53004..cc7bb0e37d 100644
--- a/src/web/app/common/scripts/get-post-summary.ls
+++ b/src/web/app/common/scripts/get-post-summary.ls
@@ -3,7 +3,11 @@ get-post-summary = (post) ~>
# メディアが添付されているとき
if post.media?
- summary += " (#{post.media.length}枚の画像)"
+ summary += " (#{post.media.length}枚のメディア)"
+
+ # 投票が添付されているとき
+ if post.poll?
+ summary += " (投票)"
# 返信のとき
if post.reply_to_id?