Update routes
This commit is contained in:
parent
2cfc459cd0
commit
88b8b379e7
2 changed files with 24 additions and 16 deletions
|
@ -17,7 +17,7 @@ defmodule NullaWeb.ActorController do
|
|||
|> json(%{error: "Not Found"})
|
||||
|
||||
%Actor{} = actor ->
|
||||
if accept in ["application/activity+json", "application/ld+json"] do
|
||||
if accept in ["application/activity+json"] do
|
||||
conn
|
||||
|> put_resp_content_type("application/activity+json")
|
||||
|> send_resp(200, Jason.encode!(ActivityPub.actor(actor)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue