Commit 600e2ea0 authored by lain's avatar lain
Browse files

ActivityPubTest: Make test easier to understand.

parent 9e411372
Pipeline #27046 passed with stages
in 8 minutes and 44 seconds
...@@ -1656,6 +1656,16 @@ test "filtering out announces where the user is the actor of the announced messa ...@@ -1656,6 +1656,16 @@ test "filtering out announces where the user is the actor of the announced messa
{:ok, _announce} = CommonAPI.repeat(post.id, third_user) {:ok, _announce} = CommonAPI.repeat(post.id, third_user)
{:ok, announce} = CommonAPI.repeat(other_post.id, other_user) {:ok, announce} = CommonAPI.repeat(other_post.id, other_user)
params = %{
type: ["Announce"]
}
results =
[user.ap_id | User.following(user)]
|> ActivityPub.fetch_activities(params)
assert length(results) == 3
params = %{ params = %{
type: ["Announce"], type: ["Announce"],
announce_filtering_user: user announce_filtering_user: user
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment