Return user specific json for logged in users.
This commit is contained in:
parent
30650e5bc6
commit
9ad045fd58
10 changed files with 72 additions and 29 deletions
|
|
@ -45,4 +45,12 @@ defmodule Pleroma.UserTest do
|
|||
|
||||
assert user.following == []
|
||||
end
|
||||
|
||||
test "test if a user is following another user" do
|
||||
{ :ok, followed } = UserBuilder.insert(%{nickname: "guy"})
|
||||
{ :ok, user } = UserBuilder.insert(%{following: [User.ap_followers(followed)]})
|
||||
|
||||
assert User.following?(user, followed)
|
||||
refute User.following?(followed, user)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue