added update unread_count for notifications

This commit is contained in:
Maksim Pechnikov 2019-10-22 16:13:22 +03:00
commit 9a4afbd2a0
3 changed files with 76 additions and 17 deletions

View file

@ -310,6 +310,13 @@ defmodule Pleroma.NotificationTest do
assert n1.seen == true
assert n2.seen == true
assert n3.seen == false
assert %Pleroma.Marker{unread_count: 1} =
Pleroma.Repo.get_by(
Pleroma.Marker,
user_id: other_user.id,
timeline: "notifications"
)
end
end