Merge pull request #3246 from riking/patch-2

Remove topic_auto_close_at from PostSerializer
This commit is contained in:
Régis Hanol 2015-03-16 09:53:38 +01:00
commit ad8bf65053

View file

@ -27,7 +27,6 @@ class PostSerializer < BasicPostSerializer
:yours,
:topic_id,
:topic_slug,
:topic_auto_close_at,
:display_username,
:primary_group_name,
:version,
@ -72,10 +71,6 @@ class PostSerializer < BasicPostSerializer
object.try(:topic).try(:slug)
end
def topic_auto_close_at
object.try(:topic).try(:auto_close_at)
end
def moderator?
!!(object.try(:user).try(:moderator?))
end