Skip to content
Snippets Groups Projects
Commit 4aa69927 authored by kaniini's avatar kaniini
Browse files

activity: use left join instead of inner join when fetching activities that...

activity: use left join instead of inner join when fetching activities that may or may not have a child object
parent 332dc137
No related branches found
No related tags found
No related merge requests found
......@@ -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)",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment