]> cat aescling's git repositories - mastodon.git/commit
make it not return http 400 when passing and empty source argument (#12259)
authorJennifer Glauche <=^.^=@github19.jglauche.de>
Sat, 16 Nov 2019 18:02:09 +0000 (19:02 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Sat, 16 Nov 2019 18:02:09 +0000 (19:02 +0100)
commitfd93a9c871e0c758603b5a939dc192aeefddab1d
tree5a43a1a5312a254bb28eef1b80788a23fd7b6083
parent286bf45d4cae7e6ea2c9164d861f020df6fa2a43
make it not return http 400 when passing and empty source argument (#12259)

* make it not return http 400 when passing and empty source argument

* create a spec for the empty source hash bug

* compact checks for nil, empty? parameters

* use nil.blank? instead checking for nil
app/controllers/api/v1/accounts/credentials_controller.rb
spec/controllers/api/v1/accounts/credentials_controller_spec.rb