mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 15:28:30 +08:00
This reverts commit e3de45359f9bc7a71d9b8045a7e369fd0cf8f433. We need to improve out strategy by adding a cache breaker with this change ... some assets on CDNs and clients may have incorrect CORS headers which can cause stuff to break.
This commit is contained in:
@ -4,8 +4,6 @@ class UserAvatarsController < ApplicationController
|
||||
|
||||
skip_before_action :preload_json, :redirect_to_login_if_required, :check_xhr, :verify_authenticity_token, only: [:show, :show_letter, :show_proxy_letter]
|
||||
|
||||
cdn_action only: [:show, :show_letter, :show_proxy_letter]
|
||||
|
||||
def refresh_gravatar
|
||||
user = User.find_by(username_lower: params[:username].downcase)
|
||||
guardian.ensure_can_edit!(user)
|
||||
|
Reference in New Issue
Block a user