mirror of
https://github.com/discourse/discourse.git
synced 2025-08-21 19:11:18 +08:00
BUGFIX: site_contact_username was case-sensitive
This commit is contained in:
parent
202d1064ea
commit
bfc9664231
2 changed files with 6 additions and 1 deletions
|
@ -168,7 +168,7 @@ module Discourse
|
|||
|
||||
# Either returns the site_contact_username user or the first admin.
|
||||
def self.site_contact_user
|
||||
user = User.where(username_lower: SiteSetting.site_contact_username).first if SiteSetting.site_contact_username.present?
|
||||
user = User.where(username_lower: SiteSetting.site_contact_username.downcase).first if SiteSetting.site_contact_username.present?
|
||||
user ||= User.admins.real.order(:id).first
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue