Show discourse logo as system user avatar

This commit is contained in:
Neil Lalonde
2014-01-29 12:17:58 -05:00
parent 9117470f27
commit c8bc9bd5db
2 changed files with 5 additions and 2 deletions

View File

@@ -340,7 +340,7 @@ class User < ActiveRecord::Base
end
def avatar_template
uploaded_avatar_path || User.gravatar_template(email)
uploaded_avatar_path || User.gravatar_template(id != -1 ? email : "team@discourse.org")
end
# The following count methods are somewhat slow - definitely don't use them in a loop.