Skip to content
Snippets Groups Projects
Commit aabcecb2 authored by kaniini's avatar kaniini
Browse files

notification: formatting

parent 07cdd9ed
Branches
Tags
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment