activity: fix credo nitpick

This commit is contained in:
William Pitcock 2019-03-23 00:24:23 +00:00
parent b3bf523c09
commit 59518cbcd8
1 changed files with 3 additions and 2 deletions

View File

@ -41,7 +41,8 @@ defmodule Pleroma.Activity do
#
# ```
# |> join(:inner, [activity], o in Object,
# fragment("(?->>'id') = COALESCE((? -> 'object'::text) ->> 'id'::text)", o.data, activity.data))
# on: fragment("(?->>'id') = COALESCE((? -> 'object'::text) ->> 'id'::text)",
# o.data, activity.data))
# |> preload([activity, object], [object: object])
# ```
#
@ -58,7 +59,7 @@ def with_preloaded_object(query) do
:inner,
[activity],
o in Object,
fragment(
on: fragment(
"(?->>'id') = COALESCE((? -> 'object'::text) ->> 'id'::text)",
o.data,
activity.data