mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2025-01-09 08:58:50 +00:00
Remove unnecesary queries
This commit is contained in:
parent
f6e632d25b
commit
369be708b2
|
@ -118,9 +118,6 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPITest do
|
||||||
|
|
||||||
{:ok, user, following, activity } = TwitterAPI.follow(user, %{"user_id" => following.id})
|
{:ok, user, following, activity } = TwitterAPI.follow(user, %{"user_id" => following.id})
|
||||||
|
|
||||||
user = Repo.get(User, user.id)
|
|
||||||
follow = Repo.get(Activity, activity.id)
|
|
||||||
|
|
||||||
assert user.following == [User.ap_followers(following)]
|
assert user.following == [User.ap_followers(following)]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -130,9 +127,6 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPITest do
|
||||||
|
|
||||||
{:ok, user, following, activity } = TwitterAPI.follow(user, %{"screen_name" => following.nickname})
|
{:ok, user, following, activity } = TwitterAPI.follow(user, %{"screen_name" => following.nickname})
|
||||||
|
|
||||||
user = Repo.get(User, user.id)
|
|
||||||
follow = Repo.get(Activity, activity.id)
|
|
||||||
|
|
||||||
assert user.following == [User.ap_followers(following)]
|
assert user.following == [User.ap_followers(following)]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue