mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2025-04-24 05:47:41 -04:00
The query for marking notifications as read has been simplified
This commit is contained in:
parent
e944b15298
commit
9ff30f5cb6
2 changed files with 3 additions and 1 deletions
1
changelog.d/mark-read.fix
Normal file
1
changelog.d/mark-read.fix
Normal file
|
@ -0,0 +1 @@
|
|||
The query for marking notifications as read has been simplified
|
|
@ -286,7 +286,8 @@ defmodule Pleroma.Notification do
|
|||
|> Marker.multi_set_last_read_id(user, "notifications")
|
||||
|> Repo.transaction()
|
||||
|
||||
for_user_query(user)
|
||||
Notification
|
||||
|> where(user_id: ^user_id)
|
||||
|> where([n], n.id in ^notification_ids)
|
||||
|> Repo.all()
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue