Marker: added unread_count field

This commit is contained in:
Maksim Pechnikov 2019-10-22 13:42:59 +03:00
commit d4270397dc
5 changed files with 61 additions and 5 deletions

View file

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