Allow to clear avatar url

This commit is contained in:
Piotr Kozimor 2022-07-19 10:30:58 +02:00
parent 8f9c0901a5
commit 1883126657

View file

@ -105,12 +105,6 @@ func SetAvatarURL(
if resErr := httputil.UnmarshalJSONRequest(req, &r); resErr != nil {
return *resErr
}
if r.AvatarURL == "" {
return util.JSONResponse{
Code: http.StatusBadRequest,
JSON: jsonerror.BadJSON("'avatar_url' must be supplied."),
}
}
localpart, _, err := gomatrixserverlib.SplitID('@', userID)
if err != nil {