activity: fix credo nitpick
This commit is contained in:
parent
b3bf523c09
commit
59518cbcd8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue