mirror of
https://github.com/discourse/discourse.git
synced 2025-03-01 10:39:56 +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…
x
Reference in New Issue
Block a user