this should be optimised at some point
This commit is contained in:
parent
2a047df4f1
commit
6127b29e4c
@ -48,6 +48,7 @@ class PostSerializer < ApplicationSerializer
|
||||
|
||||
|
||||
def new_user?
|
||||
# 21 calls = 5ms ... if there was a proper date in the RHS it would be 1ms
|
||||
object.user.created_at > SiteSetting.new_user_period_days.days.ago
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user