Update
This commit is contained in:
parent
aac9bcb6e4
commit
3f329cf59e
13 changed files with 191 additions and 119 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 =~ "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