FEATURE: Expand truncated posts in the user stream

This commit is contained in:
Robin Ward
2017-06-20 15:45:26 -04:00
parent ae7734707e
commit a289ae67e1
6 changed files with 39 additions and 2 deletions

View File

@ -44,7 +44,7 @@ class UserActionSerializer < ApplicationSerializer
end
def include_truncated?
excerpt != cooked
cooked.length > 300
end
def avatar_template