Clean up views
This commit is contained in:
parent
db0c00db8b
commit
e1d2d69c87
8 changed files with 81 additions and 42 deletions
|
|
@ -216,7 +216,8 @@ defmodule Pleroma.Web.OStatus.OStatusController do
|
|||
|
||||
conn
|
||||
|> put_resp_header("content-type", "application/activity+json")
|
||||
|> json(ObjectView.render("object.json", %{object: object}))
|
||||
|> put_view(ObjectView)
|
||||
|> render("object.json", %{object: object})
|
||||
end
|
||||
|
||||
defp represent_activity(_conn, "activity+json", _, _) do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue