From: rinpatch Date: Wed, 27 Mar 2019 09:28:53 +0000 (+0300) Subject: Fix missing announces in MastoAPI home timeline X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=ce6d64bbd8570c0c8bc46efe8a5a338876687df8;p=akkoma Fix missing announces in MastoAPI home timeline Closes #762 --- diff --git a/lib/pleroma/web/activity_pub/activity_pub.ex b/lib/pleroma/web/activity_pub/activity_pub.ex index 0d9a89d0b..6e1ed7ec9 100644 --- a/lib/pleroma/web/activity_pub/activity_pub.ex +++ b/lib/pleroma/web/activity_pub/activity_pub.ex @@ -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