Fix leaking private configuration parameters in Mastodon and Twitter APIs, and add...
authorrinpatch <rinpatch@sdf.org>
Wed, 24 Apr 2019 17:01:42 +0000 (20:01 +0300)
committerrinpatch <rinpatch@sdf.org>
Wed, 24 Apr 2019 17:01:42 +0000 (20:01 +0300)
commit4baea6e6d9efa619402a031a84f74787653df2b5
tree02fe60e2fc34ca6164ae67b1ab47bc4b4179890b
parent030a7876b42a0c925fd52474de514ae5e9171e55
Fix leaking private configuration parameters in Mastodon and Twitter APIs, and add new configuration parameters to Mastodon API

This patch:
- Fixes `rights` in twitterapi ignoring `show_role`
- Fixes exposing default scope of the user to anyone in Mastodon API
- Extends Mastodon API to be able to show and set `no_rich_text`, `default_scope`, `hide_follows`, `hide_followers`, `hide_favorites` (requested by the FE in #674)

Sorry in advance for 500 line one commit diff, I should have split it up to separate MRs
CHANGELOG.md
docs/api/differences_in_mastoapi_responses.md
lib/pleroma/user/info.ex
lib/pleroma/web/mastodon_api/mastodon_api_controller.ex
lib/pleroma/web/mastodon_api/views/account_view.ex
lib/pleroma/web/twitter_api/views/user_view.ex
test/web/mastodon_api/account_view_test.exs
test/web/mastodon_api/mastodon_api_controller_test.exs
test/web/twitter_api/views/user_view_test.exs