Skip to content
Snippets Groups Projects
Commit 7676af8b authored by kaniini's avatar kaniini
Browse files

diaspora: hcard: chase keys module changes

parent 376dc50f
Branches security/activitypub-spoofing
No related tags found
No related merge requests found
......@@ -6,8 +6,8 @@ defmodule Pleroma.Web.HCard.HCardView do
use Pleroma.Web, :view
alias Pleroma.FlakeId
alias Pleroma.Keys
alias Pleroma.User
alias Pleroma.Web.Salmon
import Phoenix.HTML.Link
import Phoenix.HTML.Tag
......@@ -26,7 +26,7 @@ defp flake_to_guid(id), do: Base.encode16(id, case: :lower)
def to_guid(%User{} = user), do: FlakeId.from_string(user.id) |> flake_to_guid()
def public_key(%User{} = user) do
{:ok, _, public_key} = Salmon.keys_from_pem(user.info.keys)
{:ok, _, public_key} = Keys.keys_from_pem(user.info.keys)
public_key = :public_key.pem_entry_encode(:SubjectPublicKeyInfo, public_key)
:public_key.pem_encode([public_key])
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment