diff options
author | Ariadne Conill <ariadne@dereferenced.org> | 2019-09-06 23:11:26 +0000 |
---|---|---|
committer | Ariadne Conill <ariadne@dereferenced.org> | 2019-09-06 23:11:26 +0000 |
commit | 5effb2cbca51534a68dad1c5a4dd24b1ae08360a (patch) | |
tree | 0a43e752506e469b5ac617604ea9f31d938e7fb5 | |
parent | 130bc8e0d553eb918685edf2b1fdab7e69021446 (diff) | |
download | pleroma-5effb2cbca51534a68dad1c5a4dd24b1ae08360a.tar.gz |
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.
-rw-r--r-- | lib/pleroma/web/activity_pub/activity_pub.ex | 2 |
1 files changed, 1 insertions, 1 deletions
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 |