mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
disable avatars mk2
This commit is contained in:
parent
01dcea2c8b
commit
7c6a0c7690
2 changed files with 2 additions and 2 deletions
|
@ -420,7 +420,7 @@ Discourse.User.reopenClass(Discourse.Singleton, {
|
|||
if(Discourse.CDN){
|
||||
url = Discourse.CDN + url;
|
||||
}
|
||||
return url;
|
||||
return "DISABLED" + url;
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
@ -212,7 +212,7 @@ Discourse::Application.routes.draw do
|
|||
delete "users/:username" => "users#destroy", constraints: {username: USERNAME_ROUTE_FORMAT}
|
||||
|
||||
post "user_avatar/:username/refresh_gravatar" => "user_avatars#refresh_gravatar"
|
||||
get "user_avatarX/:username/:size/:version.png" => "user_avatars#show", format: false
|
||||
get "user_avatar/:username/:size/:version.png" => "user_avatars#show", format: false
|
||||
|
||||
|
||||
get "uploads/:site/:id/:sha.:extension" => "uploads#show", constraints: {site: /\w+/, id: /\d+/, sha: /[a-z0-9]{15,16}/i, extension: /\w{2,}/}
|
||||
|
|
Loading…
Reference in a new issue