notification: formatting
authorWilliam Pitcock <nenolod@dereferenced.org>
Sat, 23 Mar 2019 02:30:53 +0000 (02:30 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Sat, 23 Mar 2019 02:30:53 +0000 (02:30 +0000)
lib/pleroma/notification.ex

index ef8e0b4c163b1a9e4d47e51656eaf9148de4a14f..cac10f24af4ef984f46a8710227a32ff304284ef 100644 (file)
@@ -35,7 +35,12 @@ defmodule Pleroma.Notification do
     |> where(user_id: ^user.id)
     |> join(:inner, [n], activity in assoc(n, :activity))
     |> join(:left, [n, a], object in Object,
-      on: fragment("(?->>'id') = COALESCE((? -> 'object'::text) ->> 'id'::text)", object.data, a.data)
+      on:
+        fragment(
+          "(?->>'id') = COALESCE((? -> 'object'::text) ->> 'id'::text)",
+          object.data,
+          a.data
+        )
     )
     |> preload([n, a, o], activity: {a, object: o})
   end