FIX: Check if selectable avatar with SHA1

This commit is contained in:
Bianca Nenciu 2020-08-04 16:20:16 +03:00
parent ef92b72ff6
commit 25505978d0
No known key found for this signature in database
GPG Key ID: 07E83B117A6B844D
1 changed files with 1 additions and 1 deletions

View File

@ -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