projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07cdd9e
)
notification: formatting
author
William Pitcock
<nenolod@dereferenced.org>
Sat, 23 Mar 2019 02:30:53 +0000
(
02:30
+0000)
committer
William Pitcock
<nenolod@dereferenced.org>
Sat, 23 Mar 2019 02:30:53 +0000
(
02:30
+0000)
lib/pleroma/notification.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/notification.ex
b/lib/pleroma/notification.ex
index ef8e0b4c163b1a9e4d47e51656eaf9148de4a14f..cac10f24af4ef984f46a8710227a32ff304284ef 100644
(file)
--- 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