disable avatars mk2

This commit is contained in:
Sam 2014-05-27 21:37:42 +10:00
parent 01dcea2c8b
commit 7c6a0c7690
2 changed files with 2 additions and 2 deletions

View file

@ -420,7 +420,7 @@ Discourse.User.reopenClass(Discourse.Singleton, {
if(Discourse.CDN){
url = Discourse.CDN + url;
}
return url;
return "DISABLED" + url;
},
/**

View file

@ -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,}/}