diff options
| author | Maksim Pechnikov <parallel588@gmail.com> | 2019-10-30 23:49:05 +0300 | 
|---|---|---|
| committer | Maksim Pechnikov <parallel588@gmail.com> | 2019-10-30 23:49:05 +0300 | 
| commit | 209319c8d289564653f73cbf15fb6449d91cf3ca (patch) | |
| tree | 541f69a6a4f78a2dc854fe7bccff179e71e3edcd /lib | |
| parent | 1b82eb6d4102bc2d7acec0a905e7714c95eadc94 (diff) | |
| download | pleroma-209319c8d289564653f73cbf15fb6449d91cf3ca.tar.gz pleroma-209319c8d289564653f73cbf15fb6449d91cf3ca.zip  | |
update marker api
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/pleroma/web/mastodon_api/views/marker_view.ex | 6 | 
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/pleroma/web/mastodon_api/views/marker_view.ex b/lib/pleroma/web/mastodon_api/views/marker_view.ex index 1501c2a30..81545cff0 100644 --- a/lib/pleroma/web/mastodon_api/views/marker_view.ex +++ b/lib/pleroma/web/mastodon_api/views/marker_view.ex @@ -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  | 
