mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: ensures shadow has last_posted_at before comparing to site setting (#10374)
This commit is contained in:
@@ -31,6 +31,7 @@ class AnonymousShadowCreator
|
||||
shadow = user.shadow_user
|
||||
|
||||
if shadow && (shadow.post_count + shadow.topic_count) > 0 &&
|
||||
shadow.last_posted_at &&
|
||||
shadow.last_posted_at < SiteSetting.anonymous_account_duration_minutes.minutes.ago
|
||||
shadow = nil
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user