update marker api

This commit is contained in:
Maksim Pechnikov 2019-10-30 23:49:05 +03:00
commit 209319c8d2
3 changed files with 18 additions and 16 deletions

View file

@ -10,8 +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,
unread_count: m.unread_count,
updated_at: NaiveDateTime.to_iso8601(m.updated_at)
updated_at: NaiveDateTime.to_iso8601(m.updated_at),
pleroma: %{
unread_count: m.unread_count
}
})
end)
end