mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-10 11:19:19 +00:00
[Pleroma.Web.MastodonAPI.StatusView] add replies_count
This commit is contained in:
parent
c9585ec007
commit
43d0b7bf7a
2 changed files with 3 additions and 0 deletions
|
@ -63,6 +63,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
|
||||||
content: reblogged[:content],
|
content: reblogged[:content],
|
||||||
created_at: created_at,
|
created_at: created_at,
|
||||||
reblogs_count: 0,
|
reblogs_count: 0,
|
||||||
|
replies_count: 0,
|
||||||
favourites_count: 0,
|
favourites_count: 0,
|
||||||
reblogged: false,
|
reblogged: false,
|
||||||
favourited: false,
|
favourited: false,
|
||||||
|
@ -132,6 +133,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
|
||||||
content: render_content(object),
|
content: render_content(object),
|
||||||
created_at: created_at,
|
created_at: created_at,
|
||||||
reblogs_count: announcement_count,
|
reblogs_count: announcement_count,
|
||||||
|
replies_count: 0,
|
||||||
favourites_count: like_count,
|
favourites_count: like_count,
|
||||||
reblogged: !!repeated,
|
reblogged: !!repeated,
|
||||||
favourited: !!favorited,
|
favourited: !!favorited,
|
||||||
|
|
|
@ -28,6 +28,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do
|
||||||
content: HtmlSanitizeEx.basic_html(note.data["object"]["content"]),
|
content: HtmlSanitizeEx.basic_html(note.data["object"]["content"]),
|
||||||
created_at: created_at,
|
created_at: created_at,
|
||||||
reblogs_count: 0,
|
reblogs_count: 0,
|
||||||
|
replies_count: 0,
|
||||||
favourites_count: 0,
|
favourites_count: 0,
|
||||||
reblogged: false,
|
reblogged: false,
|
||||||
favourited: false,
|
favourited: false,
|
||||||
|
|
Loading…
Reference in a new issue