From: Ariadne Conill Date: Fri, 6 Sep 2019 23:11:26 +0000 (+0000) Subject: activitypub: help ecto build a better query for thread mute filtering X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=5effb2cbca51534a68dad1c5a4dd24b1ae08360a;p=akkoma activitypub: help ecto build a better query for thread mute filtering using an indexed value in thread_mute table helps ecto build a better query. --- diff --git a/lib/pleroma/web/activity_pub/activity_pub.ex b/lib/pleroma/web/activity_pub/activity_pub.ex index eeb826814..d23ec66ac 100644 --- a/lib/pleroma/web/activity_pub/activity_pub.ex +++ b/lib/pleroma/web/activity_pub/activity_pub.ex @@ -796,7 +796,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do ) unless opts["skip_preload"] do - from([thread_mute: tm] in query, where: is_nil(tm)) + from([thread_mute: tm] in query, where: is_nil(tm.user_id)) else query end