Verified Commit 43d0b7bf authored by Haelwenn's avatar Haelwenn
Browse files

[Pleroma.Web.MastodonAPI.StatusView] add replies_count

parent c9585ec0
Pipeline #3787 passed with stages
in 6 minutes and 18 seconds
......@@ -63,6 +63,7 @@ def render(
content: reblogged[:content],
created_at: created_at,
reblogs_count: 0,
replies_count: 0,
favourites_count: 0,
reblogged: false,
favourited: false,
......@@ -132,6 +133,7 @@ def render("status.json", %{activity: %{data: %{"object" => object}} = activity}
content: render_content(object),
created_at: created_at,
reblogs_count: announcement_count,
replies_count: 0,
favourites_count: like_count,
reblogged: !!repeated,
favourited: !!favorited,
......
......@@ -28,6 +28,7 @@ test "a note activity" do
content: HtmlSanitizeEx.basic_html(note.data["object"]["content"]),
created_at: created_at,
reblogs_count: 0,
replies_count: 0,
favourites_count: 0,
reblogged: false,
favourited: false,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment