Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pleroma
pleroma
Commits
600e2ea0
Commit
600e2ea0
authored
Jun 10, 2020
by
lain
Browse files
ActivityPubTest: Make test easier to understand.
parent
9e411372
Pipeline
#27046
passed with stages
in 8 minutes and 44 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
test/web/activity_pub/activity_pub_test.exs
View file @
600e2ea0
...
...
@@ -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
(
other_post
.
id
,
other_user
)
params
=
%{
type:
[
"Announce"
]
}
results
=
[
user
.
ap_id
|
User
.
following
(
user
)]
|>
ActivityPub
.
fetch_activities
(
params
)
assert
length
(
results
)
==
3
params
=
%{
type:
[
"Announce"
],
announce_filtering_user:
user
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment