mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: If we can't proxy to a CDN due to HTTP error, render blank
This commit is contained in:
@@ -117,6 +117,8 @@ class UserAvatarsController < ApplicationController
|
|||||||
else
|
else
|
||||||
render_blank
|
render_blank
|
||||||
end
|
end
|
||||||
|
rescue OpenURI::HTTPError
|
||||||
|
render_blank
|
||||||
end
|
end
|
||||||
|
|
||||||
PROXY_PATH = Rails.root + "tmp/avatar_proxy"
|
PROXY_PATH = Rails.root + "tmp/avatar_proxy"
|
||||||
|
|||||||
Reference in New Issue
Block a user