mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-28 01:56:01 -05:00
fix the build
This commit is contained in:
parent
8128abe6b9
commit
29f25dbf6e
1 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,7 @@ class UserAvatar < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def self.local_avatar_url(hostname, username, upload_id, size)
|
||||
self.local_avatar_template(hostname, username, upload_id).gsub("{size}", size)
|
||||
self.local_avatar_template(hostname, username, upload_id).gsub("{size}", size.to_s)
|
||||
end
|
||||
|
||||
def self.local_avatar_template(hostname, username, upload_id)
|
||||
|
@ -48,7 +48,7 @@ class UserAvatar < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def self.external_avatar_url(user_id, upload_id, size)
|
||||
self.external_avatar_template(user_id, upload_id).gsub("{size}", size)
|
||||
self.external_avatar_template(user_id, upload_id).gsub("{size}", size.to_s)
|
||||
end
|
||||
|
||||
def self.external_avatar_template(user_id, upload_id)
|
||||
|
|
Loading…
Reference in a new issue