mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 23:07:28 +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
|
return render json: failed_json, status: 422
|
||||||
end
|
end
|
||||||
|
|
||||||
unless SiteSetting.selectable_avatars[upload.url]
|
unless SiteSetting.selectable_avatars[upload.sha1]
|
||||||
return render json: failed_json, status: 422
|
return render json: failed_json, status: 422
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user