Extract status actions from MastodonAPIController into StatusController
This commit is contained in:
parent
219771288c
commit
98d1347a4e
13 changed files with 354 additions and 328 deletions
|
|
@ -42,7 +42,7 @@ defmodule Pleroma.BBS.Handler do
|
|||
end
|
||||
|
||||
def puts_activity(activity) do
|
||||
status = Pleroma.Web.MastodonAPI.StatusView.render("status.json", %{activity: activity})
|
||||
status = Pleroma.Web.MastodonAPI.StatusView.render("show.json", %{activity: activity})
|
||||
IO.puts("-- #{status.id} by #{status.account.display_name} (#{status.account.acct})")
|
||||
IO.puts(HtmlSanitizeEx.strip_tags(status.content))
|
||||
IO.puts("")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue