Remove follow_request_count as it's not needed for FE anymore.
MastoFE uses `GET /api/v1/follow_requests` and PleromaFE uses `GET /api/pleroma/friend_requests` which they query on the initial page load.
This commit is contained in:
parent
9b63fda9c7
commit
d5418e9ff7
6 changed files with 4 additions and 53 deletions
|
|
@ -946,7 +946,6 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do
|
|||
other_user = Repo.get(User, other_user.id)
|
||||
|
||||
assert User.following?(other_user, user) == false
|
||||
assert user.info.follow_request_count == 1
|
||||
|
||||
conn =
|
||||
build_conn()
|
||||
|
|
@ -960,7 +959,6 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do
|
|||
other_user = Repo.get(User, other_user.id)
|
||||
|
||||
assert User.following?(other_user, user) == true
|
||||
assert user.info.follow_request_count == 0
|
||||
end
|
||||
|
||||
test "verify_credentials", %{conn: conn} do
|
||||
|
|
@ -982,7 +980,6 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do
|
|||
{:ok, _activity} = ActivityPub.follow(other_user, user)
|
||||
|
||||
user = Repo.get(User, user.id)
|
||||
assert user.info.follow_request_count == 1
|
||||
|
||||
conn =
|
||||
build_conn()
|
||||
|
|
@ -996,7 +993,6 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do
|
|||
other_user = Repo.get(User, other_user.id)
|
||||
|
||||
assert User.following?(other_user, user) == false
|
||||
assert user.info.follow_request_count == 0
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -690,7 +690,6 @@ defmodule Pleroma.Web.TwitterAPI.ControllerTest do
|
|||
followed = Repo.get(User, followed.id)
|
||||
|
||||
refute User.ap_followers(followed) in current_user.following
|
||||
assert followed.info.follow_request_count == 1
|
||||
|
||||
assert json_response(conn, 200) ==
|
||||
UserView.render("show.json", %{user: followed, for: current_user})
|
||||
|
|
@ -1757,7 +1756,6 @@ defmodule Pleroma.Web.TwitterAPI.ControllerTest do
|
|||
other_user = Repo.get(User, other_user.id)
|
||||
|
||||
assert User.following?(other_user, user) == false
|
||||
assert user.info.follow_request_count == 1
|
||||
|
||||
conn =
|
||||
build_conn()
|
||||
|
|
@ -1769,7 +1767,6 @@ defmodule Pleroma.Web.TwitterAPI.ControllerTest do
|
|||
assert relationship = json_response(conn, 200)
|
||||
assert other_user.id == relationship["id"]
|
||||
assert relationship["follows_you"] == true
|
||||
assert user.info.follow_request_count == 0
|
||||
end
|
||||
end
|
||||
|
||||
|
|
@ -1784,7 +1781,6 @@ defmodule Pleroma.Web.TwitterAPI.ControllerTest do
|
|||
other_user = Repo.get(User, other_user.id)
|
||||
|
||||
assert User.following?(other_user, user) == false
|
||||
assert user.info.follow_request_count == 1
|
||||
|
||||
conn =
|
||||
build_conn()
|
||||
|
|
@ -1796,7 +1792,6 @@ defmodule Pleroma.Web.TwitterAPI.ControllerTest do
|
|||
assert relationship = json_response(conn, 200)
|
||||
assert other_user.id == relationship["id"]
|
||||
assert relationship["follows_you"] == false
|
||||
assert user.info.follow_request_count == 0
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue