Merge branch 'develop' into issue/1276
[akkoma] / lib / pleroma / web / mastodon_api / views / marker_view.ex
index 985368fe5a771463fb780403a17871fbf6d7bcab..415dae93b43b491a6bd5ce3606649d2e438c912d 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