activity: use left join instead of inner join when fetching activities that may or...
authorWilliam Pitcock <nenolod@dereferenced.org>
Sat, 23 Mar 2019 03:13:19 +0000 (03:13 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Sat, 23 Mar 2019 03:17:50 +0000 (03:17 +0000)
lib/pleroma/activity.ex

index fcdac3a3f249705ba87ca04003d58ac0e35c91f8..26190df2fabac32305e5fba728eadc6e844bbf66 100644 (file)
@@ -83,7 +83,7 @@ defmodule Pleroma.Activity do
       from(
         activity in Activity,
         where: fragment("(?)->>'id' = ?", activity.data, ^to_string(ap_id)),
-        inner_join: o in Object,
+        left_join: o in Object,
         on:
           fragment(
             "(?->>'id') = COALESCE((? -> 'object'::text) ->> 'id'::text)",