diff --git a/lib/pleroma/activity.ex b/lib/pleroma/activity.ex index fcdac3a3f..26190df2f 100644 --- a/lib/pleroma/activity.ex +++ b/lib/pleroma/activity.ex @@ -83,7 +83,7 @@ def get_by_ap_id_with_object(ap_id) 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)",