Skip to content
Snippets Groups Projects
Commit ce6d64bb authored by rinpatch's avatar rinpatch
Browse files

Fix missing announces in MastoAPI home timeline

Closes #762
parent b2e163ec
No related branches found
No related tags found
No related merge requests found
......@@ -737,8 +737,13 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment