mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
Replace base_uri
with base_path
(#10879)
DEV: Replace instances of Discourse.base_uri with Discourse.base_path This is clearer because the base_uri is actually just a path prefix. This continues the work started in 555f467.
This commit is contained in:

committed by
GitHub

parent
5e3130ac26
commit
721ee36425
@ -108,7 +108,7 @@ after_initialize do
|
||||
private
|
||||
|
||||
def fetch_avatar(user)
|
||||
avatar_url = UrlHelper.absolute(Discourse.base_uri + user.avatar_template.gsub('{size}', '250'))
|
||||
avatar_url = UrlHelper.absolute(Discourse.base_path + user.avatar_template.gsub('{size}', '250'))
|
||||
FileHelper.download(
|
||||
avatar_url.to_s,
|
||||
max_file_size: SiteSetting.max_image_size_kb.kilobytes,
|
||||
|
Reference in New Issue
Block a user