Update
This commit is contained in:
parent
124149129e
commit
ee68ec870d
9 changed files with 92 additions and 41 deletions
|
@ -11,7 +11,7 @@ defmodule NullaWeb.InboxController do
|
|||
conn,
|
||||
%{"id" => follow_id, "type" => "Follow", "actor" => actor_uri, "object" => target_uri}
|
||||
) do
|
||||
with {:ok, local_actor} <- Utils.resolve_local_actor(target_uri),
|
||||
with local_actor <- Actor.get_actor(ap_id: target_uri),
|
||||
{:ok, remote_actor_json} <- Utils.fetch_remote_actor(actor_uri),
|
||||
:ok <- HTTPSignature.verify(conn, remote_actor_json),
|
||||
remote_actor <-
|
||||
|
@ -31,7 +31,7 @@ defmodule NullaWeb.InboxController do
|
|||
accept_activity <-
|
||||
Activity.create_activity(%{
|
||||
type: "Accept",
|
||||
actor: local_actor.id,
|
||||
actor: local_actor.ap_id,
|
||||
object: follow_activity
|
||||
}),
|
||||
_ <-
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue