maked unread_count as virtual field

This commit is contained in:
Maksim Pechnikov 2020-02-10 09:01:45 +03:00
commit cd040691bd
7 changed files with 123 additions and 156 deletions

View file

@ -18,13 +18,7 @@ defmodule Pleroma.Web.MastodonAPI.MarkerController do
# GET /api/v1/markers
def index(%{assigns: %{user: user}} = conn, params) do
markers =
Pleroma.Marker.get_markers(
user,
params["timeline"],
%{recount_unread: true}
)
markers = Pleroma.Marker.get_markers(user, params["timeline"])
render(conn, "markers.json", %{markers: markers})
end