mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
Merge pull request #3246 from riking/patch-2
Remove topic_auto_close_at from PostSerializer
This commit is contained in:
commit
ad8bf65053
1 changed files with 0 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue