mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 01:47:22 +08:00
FIX: Check if selectable avatar with SHA1
This commit is contained in:
parent
ef92b72ff6
commit
25505978d0
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user