Merge branch 'develop' into issue/1276
[akkoma] / lib / pleroma / web / mastodon_api / views / marker_view.ex
index 38fbeed5f2b6c62ddf51ca5c02dc2028fc9e9745..81545cff08e2b82166ce87b44c150829c0d09026 100644 (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