Mercurial > rsstweet
changeset 82:f91e2d00f03f
Reduce title length limit
author | nanaya <me@myconan.net> |
---|---|
date | Sun, 26 Jun 2016 18:22:05 +0900 |
parents | fe5ea9b86091 |
children | d20e531afed5 |
files | app/helpers/application_helper.rb |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/app/helpers/application_helper.rb Sun Jun 26 18:20:24 2016 +0900 +++ b/app/helpers/application_helper.rb Sun Jun 26 18:22:05 2016 +0900 @@ -1,7 +1,7 @@ module ApplicationHelper include Twitter::Autolink - def ellipsize(text, limit = 60) + def ellipsize(text, limit = 30) if text.length <= limit text else