mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: user_option option can be nil for new users.
This commit is contained in:
@@ -179,7 +179,7 @@ after_initialize do
|
||||
self.human? &&
|
||||
!self.anonymous? &&
|
||||
!self.staged &&
|
||||
!user_option.skip_new_user_tips &&
|
||||
!user_option&.skip_new_user_tips &&
|
||||
!SiteSetting.discourse_narrative_bot_ignored_usernames.split('|'.freeze).include?(self.username)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user