activity: fix credo nitpick
authorWilliam Pitcock <nenolod@dereferenced.org>
Sat, 23 Mar 2019 00:24:23 +0000 (00:24 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Sat, 23 Mar 2019 00:26:12 +0000 (00:26 +0000)
lib/pleroma/activity.ex

index 370721070f70fc2f55c7e437a468b2542a5b4f05..f041d0e5364211698baf52ccd4c59af09fc5c3db 100644 (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 @@ defmodule Pleroma.Activity do
       :inner,
       [activity],
       o in Object,
-      fragment(
+      on: fragment(
         "(?->>'id') = COALESCE((? -> 'object'::text) ->> 'id'::text)",
         o.data,
         activity.data