mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 11:02:46 +08:00
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user