mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 10:58:31 -05:00
this should be optimised at some point
This commit is contained in:
parent
2a047df4f1
commit
6127b29e4c
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue