Simplify and fix public key stuff

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2018-11-07 18:12:21 +01:00
parent 3f0cb8a183
commit 28336f1b53
2 changed files with 9 additions and 8 deletions

View File

@@ -183,7 +183,6 @@ defmodule Mobilizon.Actors.Actor do
def get_public_key_for_url(url) do
with {:ok, %Actor{} = actor} <- Actors.get_or_fetch_by_url(url) do
actor.keys
|> Mobilizon.Service.ActivityPub.Utils.pem_to_public_key()
else
_ -> :error
end