Specify default scope in verify_credentials
authorWill Pearson <uiri00@gmail.com>
Sat, 1 Sep 2018 03:59:43 +0000 (20:59 -0700)
committerWill Pearson <uiri00@gmail.com>
Sat, 1 Sep 2018 04:04:46 +0000 (21:04 -0700)
commit0c2a0e3551f26bff8fa6161356ddcefb791baccf
tree32863cd983a8d687ee7044e25d142d20ddff6ab3
parentd31bbb1cfe04ca6073a322bcf77239e7d4b79839
Specify default scope in verify_credentials

Certain Mastodon/Pleroma front ends call verify_credentials to get the
default scope of a new toot.

Currently, Pleroma hardcodes this value to "public".

This patch changes it to the user's default_scope value.
lib/pleroma/user.ex
lib/pleroma/web/mastodon_api/views/account_view.ex
test/web/mastodon_api/mastodon_api_controller_test.exs