[#1973] Fixed accounts rendering in GET /api/v1/pleroma/chats with truish :restrict_u...
authorIvan Tashkinov <ivantashkinov@gmail.com>
Wed, 22 Jul 2020 16:06:00 +0000 (19:06 +0300)
committerIvan Tashkinov <ivantashkinov@gmail.com>
Wed, 22 Jul 2020 16:06:00 +0000 (19:06 +0300)
commit6f5f7af607518b6f67df68bab9bf76142e9a622c
tree42b8040061d9401865c28e6de4f8bb454bf0ba79
parent1c9752cff445ab1f58cea1617d3c7ab73da60e10
[#1973] Fixed accounts rendering in GET /api/v1/pleroma/chats with truish :restrict_unauthenticated.
Made `Pleroma.Web.MastodonAPI.AccountView.render("show.json", _)` demand :for or :force option in order to prevent incorrect rendering of empty map instead of expected user representation with truish :restrict_unauthenticated setting.
20 files changed:
lib/pleroma/web/activity_pub/utils.ex
lib/pleroma/web/admin_api/controllers/admin_api_controller.ex
lib/pleroma/web/admin_api/views/account_view.ex
lib/pleroma/web/chat_channel.ex
lib/pleroma/web/mastodon_api/controllers/search_controller.ex
lib/pleroma/web/mastodon_api/views/account_view.ex
lib/pleroma/web/mastodon_api/views/conversation_view.ex
lib/pleroma/web/pleroma_api/controllers/chat_controller.ex
lib/pleroma/web/pleroma_api/views/chat_view.ex
lib/pleroma/web/pleroma_api/views/emoji_reaction_view.ex
mix.lock
test/web/activity_pub/activity_pub_test.exs
test/web/activity_pub/transmogrifier_test.exs
test/web/activity_pub/utils_test.exs
test/web/admin_api/views/report_view_test.exs
test/web/mastodon_api/views/account_view_test.exs
test/web/mastodon_api/views/status_view_test.exs
test/web/pleroma_api/controllers/chat_controller_test.exs
test/web/pleroma_api/views/chat_view_test.exs
test/web/twitter_api/twitter_api_test.exs