Add avatar URL to Discourse Connect
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

Discourse should download and set the avatar if the user doesn't have
one set yet.
This commit is contained in:
2025-05-12 15:04:56 +04:00
parent 512f0ccca1
commit 46b908839d
3 changed files with 11 additions and 8 deletions

View File

@@ -9,13 +9,5 @@ module AppCatalog
@image_url = image_url_for(web_app.apple_touch_icon)
end
end
def image_url_for(attachment)
if Setting.s3_enabled?
s3_image_url(attachment)
else
Rails.application.routes.url_helpers.rails_blob_path(attachment, only_path: true)
end
end
end
end