Mastodon API Account view: Remove an outdated hack
authorrinpatch <rinpatch@sdf.org>
Sun, 22 Mar 2020 14:10:37 +0000 (17:10 +0300)
committerrinpatch <rinpatch@sdf.org>
Sun, 22 Mar 2020 14:10:37 +0000 (17:10 +0300)
commit981e015f1b68c7cf807b0ddbf3948809f11b7fff
tree2d71289517f63f2135ac934c5850c5fb0cba9c0c
parentd74405fc1a27bb3d13f4ead2bc2369f23827a781
Mastodon API Account view: Remove an outdated hack

The hack with caching the follow relationship was introduced
when we still were storing it inside the follow activity, resulting in
slow queries. Now we store follow state in `FollowRelationship` table,
so this is no longer necessary.
lib/pleroma/user.ex
lib/pleroma/web/activity_pub/activity_pub.ex
lib/pleroma/web/activity_pub/utils.ex
lib/pleroma/web/mastodon_api/views/account_view.ex