Explorar el Código

Merge branch 'hotfix/missing-announce-mastoapi' into 'develop'

Fix missing announces in MastoAPI home timeline

Closes #762

See merge request pleroma/pleroma!983
tags/v1.1.4
rinpatch hace 5 años
padre
commit
6da1999fc8
Se han modificado 1 ficheros con 7 adiciones y 2 borrados
  1. +7
    -2
      lib/pleroma/web/activity_pub/activity_pub.ex

+ 7
- 2
lib/pleroma/web/activity_pub/activity_pub.ex Ver fichero

@@ -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



Cargando…
Cancelar
Guardar