Preload thread mutes/bookmarks in get_context
authorrinpatch <rinpatch@sdf.org>
Tue, 13 Aug 2019 23:36:54 +0000 (02:36 +0300)
committerrinpatch <rinpatch@sdf.org>
Tue, 13 Aug 2019 23:36:54 +0000 (02:36 +0300)
commitf4e087ee485bd6766e426627eeaa729779b5eabc
tree80d9190a84a9c87cf11785bdcb4f21209694cfaf
parentc3a54cc34daa971153508f269b3e701ca6eb08cd
Preload thread mutes/bookmarks in get_context

Also removes filtering for creates (was done on the database side
already) and filtering for the requested activity (moved to the database
side) from application side.
lib/pleroma/web/activity_pub/activity_pub.ex
lib/pleroma/web/mastodon_api/mastodon_api_controller.ex