mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-23 13:26:22 -04: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?
|
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
|
object.user.created_at > SiteSetting.new_user_period_days.days.ago
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue