forked from AkkomaGang/akkoma
Merge branch 'hotfix/missing-announce-mastoapi' into 'develop'
Fix missing announces in MastoAPI home timeline Closes #762 See merge request pleroma/pleroma!983
This commit is contained in:
commit
6da1999fc8
1 changed files with 7 additions and 2 deletions
|
@ -737,8 +737,13 @@ defp restrict_muted_reblogs(query, %{"muting_user" => %User{info: info}}) do
|
||||||
|
|
||||||
from(
|
from(
|
||||||
activity in query,
|
activity in query,
|
||||||
where: fragment("not ?->>'type' = 'Announce'", activity.data),
|
where:
|
||||||
where: fragment("not ? = ANY(?)", activity.actor, ^muted_reblogs)
|
fragment(
|
||||||
|
"not ( ?->>'type' = 'Announce' and ? = ANY(?))",
|
||||||
|
activity.data,
|
||||||
|
activity.actor,
|
||||||
|
^muted_reblogs
|
||||||
|
)
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue