summaryrefslogtreecommitdiff
path: root/test/web/mastodon_api/controllers/account_controller_test.exs
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2019-10-28 07:27:45 +0000
committerlain <lain@soykaf.club>2019-10-28 07:27:45 +0000
commit248020075982a18534aebec3ff63eee0ae6185f4 (patch)
treeee362d4bc812ba89195c6ed51d97b0b20fbcd5aa /test/web/mastodon_api/controllers/account_controller_test.exs
parent060adfd762a5183b3cc5f51e041819b24b8430d2 (diff)
parent4c1dd55c48f80f3ebdb26d1a0c1a75b7922f578c (diff)
downloadpleroma-248020075982a18534aebec3ff63eee0ae6185f4.tar.gz
pleroma-248020075982a18534aebec3ff63eee0ae6185f4.zip
Merge branch 'refactor/following-relationships' into 'develop'
Move following relationships to a separate table Closes #1233 See merge request pleroma/pleroma!1814
Diffstat (limited to 'test/web/mastodon_api/controllers/account_controller_test.exs')
-rw-r--r--test/web/mastodon_api/controllers/account_controller_test.exs2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/web/mastodon_api/controllers/account_controller_test.exs b/test/web/mastodon_api/controllers/account_controller_test.exs
index 00c83fd7b..8fc2d9300 100644
--- a/test/web/mastodon_api/controllers/account_controller_test.exs
+++ b/test/web/mastodon_api/controllers/account_controller_test.exs
@@ -471,7 +471,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountControllerTest do
conn =
build_conn()
- |> assign(:user, follower)
+ |> assign(:user, User.get_cached_by_id(follower.id))
|> post("/api/v1/accounts/#{followed.id}/follow?reblogs=true")
assert %{"showing_reblogs" => true} = json_response(conn, 200)