mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 02:48:28 +08:00
Added some macros to simplify code
This commit is contained in:
@ -40,7 +40,8 @@ class PostSerializer < BasicPostSerializer
|
||||
:hidden,
|
||||
:hidden_reason_id,
|
||||
:deleted_at,
|
||||
:trust_level
|
||||
:trust_level,
|
||||
:deleted_by
|
||||
|
||||
|
||||
def moderator?
|
||||
@ -72,7 +73,6 @@ class PostSerializer < BasicPostSerializer
|
||||
end
|
||||
|
||||
def link_counts
|
||||
|
||||
return @single_post_link_counts if @single_post_link_counts.present?
|
||||
|
||||
# TODO: This could be better, just porting the old one over
|
||||
|
Reference in New Issue
Block a user