projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add include for the "Further reading" section
[akkoma]
/
test
/
user_test.exs
diff --git
a/test/user_test.exs
b/test/user_test.exs
index 48c7605f56a967a12341ad10734ad28291361e50..98c79da4f642f7717e8ae12a08d5f27c98cb3b32 100644
(file)
--- a/
test/user_test.exs
+++ b/
test/user_test.exs
@@
-1159,6
+1159,9
@@
defmodule Pleroma.UserTest do
follower = insert(:user)
{:ok, follower} = User.follow(follower, user)
follower = insert(:user)
{:ok, follower} = User.follow(follower, user)
+ locked_user = insert(:user, name: "locked", locked: true)
+ {:ok, _} = User.follow(user, locked_user, :follow_pending)
+
object = insert(:note, user: user)
activity = insert(:note_activity, user: user, note: object)
object = insert(:note, user: user)
activity = insert(:note_activity, user: user, note: object)
@@
-1177,6
+1180,8
@@
defmodule Pleroma.UserTest do
refute User.following?(follower, user)
assert %{deactivated: true} = User.get_by_id(user.id)
refute User.following?(follower, user)
assert %{deactivated: true} = User.get_by_id(user.id)
+ assert [] == User.get_follow_requests(locked_user)
+
user_activities =
user.ap_id
|> Activity.Queries.by_actor()
user_activities =
user.ap_id
|> Activity.Queries.by_actor()