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
ce6d64bb
Commit
ce6d64bb
authored
Mar 27, 2019
by
rinpatch
Browse files
Fix missing announces in MastoAPI home timeline
Closes
#762
parent
b2e163ec
Pipeline
#9505
passed with stages
in 7 minutes and 38 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
lib/pleroma/web/activity_pub/activity_pub.ex
View file @
ce6d64bb
...
...
@@ -737,8 +737,13 @@ defp restrict_muted_reblogs(query, %{"muting_user" => %User{info: info}}) do
from
(
activity
in
query
,
where:
fragment
(
"not ?->>'type' = 'Announce'"
,
activity
.
data
),
where:
fragment
(
"not ? = ANY(?)"
,
activity
.
actor
,
^
muted_reblogs
)
where:
fragment
(
"not ( ?->>'type' = 'Announce' and ? = ANY(?))"
,
activity
.
data
,
activity
.
actor
,
^
muted_reblogs
)
)
end
...
...
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