mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 15:28:30 +08:00
FIX: Check if selectable avatar with SHA1
This commit is contained in:
@ -1138,7 +1138,7 @@ class UsersController < ApplicationController
|
||||
return render json: failed_json, status: 422
|
||||
end
|
||||
|
||||
unless SiteSetting.selectable_avatars[upload.url]
|
||||
unless SiteSetting.selectable_avatars[upload.sha1]
|
||||
return render json: failed_json, status: 422
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user