maked unread_count as virtual field
This commit is contained in:
parent
b87533760b
commit
cd040691bd
7 changed files with 123 additions and 156 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue