Make tests great again !
(Also use only one field for public/private key pem) Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -13,7 +13,8 @@ defmodule EventosWeb.ActivityPub.ActorView do
|
||||
import Ecto.Query
|
||||
|
||||
def render("actor.json", %{actor: actor}) do
|
||||
{:ok, public_key} = Actor.get_public_key_for_actor(actor)
|
||||
pem = Actor.get_keys_for_actor(actor)
|
||||
public_key = Eventos.Service.ActivityPub.Utils.pem_to_public_key_pem(pem)
|
||||
|
||||
%{
|
||||
"id" => actor.url,
|
||||
|
||||
@@ -12,7 +12,9 @@ defmodule EventosWeb.CommentView do
|
||||
|
||||
def render("comment.json", %{comment: comment}) do
|
||||
%{id: comment.id,
|
||||
uuid: comment.uuid,
|
||||
url: comment.url,
|
||||
text: comment.text}
|
||||
text: comment.text
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user