mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 20:34:50 +08:00
FEATURE: Use the site's small logo as the system user's avatar. (#11661)
This commit is contained in:
@ -868,7 +868,11 @@ class User < ActiveRecord::Base
|
||||
end
|
||||
|
||||
def avatar_template
|
||||
self.class.avatar_template(username, uploaded_avatar_id)
|
||||
if id == Discourse::SYSTEM_USER_ID && SiteSetting.logo_small
|
||||
UrlHelper.absolute(SiteSetting.logo_small.url)
|
||||
else
|
||||
self.class.avatar_template(username, uploaded_avatar_id)
|
||||
end
|
||||
end
|
||||
|
||||
# The following count methods are somewhat slow - definitely don't use them in a loop.
|
||||
|
Reference in New Issue
Block a user