diff options
| author | syuilo⭐️ <Syuilotan@yahoo.co.jp> | 2017-02-18 18:12:04 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-02-18 18:12:04 +0900 |
| commit | 5305f3dde2b2ef2e36b09548452ca5c1a547092a (patch) | |
| tree | 9961c66c4de99d5a4bf590f378e0474df28fef15 /src/web/app/common/scripts/get-post-summary.ls | |
| parent | 壁紙廃止 (diff) | |
| parent | Remove unused dependency (diff) | |
| download | misskey-5305f3dde2b2ef2e36b09548452ca5c1a547092a.tar.gz misskey-5305f3dde2b2ef2e36b09548452ca5c1a547092a.tar.bz2 misskey-5305f3dde2b2ef2e36b09548452ca5c1a547092a.zip | |
Merge pull request #179 from syuilo/no-ls
No ls
Diffstat (limited to 'src/web/app/common/scripts/get-post-summary.ls')
| -rw-r--r-- | src/web/app/common/scripts/get-post-summary.ls | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/web/app/common/scripts/get-post-summary.ls b/src/web/app/common/scripts/get-post-summary.ls deleted file mode 100644 index 67178bc324..0000000000 --- a/src/web/app/common/scripts/get-post-summary.ls +++ /dev/null @@ -1,30 +0,0 @@ -get-post-summary = (post) ~> - summary = if post.text? then post.text else '' - - # メディアが添付されているとき - if post.media? - summary += " (#{post.media.length}つのメディア)" - - # 投票が添付されているとき - if post.poll? - summary += " (投票)" - - # 返信のとき - if post.reply_to_id? - if post.reply_to? - reply-summary = get-post-summary post.reply_to - summary += " RE: #{reply-summary}" - else - summary += " RE: ..." - - # Repostのとき - if post.repost_id? - if post.repost? - repost-summary = get-post-summary post.repost - summary += " RP: #{repost-summary}" - else - summary += " RP: ..." - - return summary.trim! - -module.exports = get-post-summary |