added an endpoint for getting unread notification count

This commit is contained in:
Maksim Pechnikov 2020-04-15 21:19:43 +03:00
commit 4b3b1fec4e
11 changed files with 214 additions and 51 deletions

View file

@ -10,7 +10,10 @@ defmodule Pleroma.Web.MastodonAPI.MarkerView do
Map.put_new(acc, m.timeline, %{
last_read_id: m.last_read_id,
version: m.lock_version,
updated_at: NaiveDateTime.to_iso8601(m.updated_at)
updated_at: NaiveDateTime.to_iso8601(m.updated_at),
pleroma: %{
unread_count: m.unread_count
}
})
end)
end