mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: user_option
option can be nil
for new users.
This commit is contained in:
parent
208d85aaff
commit
f495fca7e8
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue