diff options
author | William Pitcock <nenolod@dereferenced.org> | 2019-03-23 02:30:53 +0000 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2019-03-23 02:30:53 +0000 |
commit | aabcecb26935475b5985b6438774ee1d3cc14514 (patch) | |
tree | 9dd34b98492ac2374a85e543792eb300c02bf0a0 /lib | |
parent | 07cdd9ed02838069b58c3b6cf9aec73b1d1852c3 (diff) | |
download | pleroma-aabcecb26935475b5985b6438774ee1d3cc14514.tar.gz |
notification: formatting
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/notification.ex | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/pleroma/notification.ex b/lib/pleroma/notification.ex index ef8e0b4c1..cac10f24a 100644 --- a/lib/pleroma/notification.ex +++ b/lib/pleroma/notification.ex @@ -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 |