mirror of
https://git.youjo.love/youjo/youjo-be.git
synced 2024-11-20 13:59:55 +01:00
Apply suggestion to lib/pleroma/notification.ex
This commit is contained in:
parent
c2b6c1b089
commit
7c3838090f
1 changed files with 2 additions and 1 deletions
|
@ -116,7 +116,8 @@ defmodule Pleroma.Notification do
|
|||
|
||||
{_, notification_ids} = Repo.update_all(query, [])
|
||||
|
||||
from(n in Notification, where: n.id in ^notification_ids)
|
||||
Notification
|
||||
|> where([n], n.id in ^notification_ids)
|
||||
|> join(:inner, [n], activity in assoc(n, :activity))
|
||||
|> join(:left, [n, a], object in Object,
|
||||
on:
|
||||
|
|
Loading…
Reference in a new issue