Fix
This commit is contained in:
parent
31f6c9f9ad
commit
b03b2001ba
2 changed files with 3 additions and 4 deletions
|
@ -57,7 +57,6 @@ defmodule Nulla.Relations.Relation do
|
||||||
:blocked_by,
|
:blocked_by,
|
||||||
:domain_blocking,
|
:domain_blocking,
|
||||||
:requested,
|
:requested,
|
||||||
:note,
|
|
||||||
:local_actor_id,
|
:local_actor_id,
|
||||||
:remote_actor_id
|
:remote_actor_id
|
||||||
])
|
])
|
||||||
|
|
|
@ -137,11 +137,11 @@ defmodule NullaWeb.ActivityPub.InboxController do
|
||||||
}) do
|
}) do
|
||||||
nil ->
|
nil ->
|
||||||
case Relations.create_relation(%{
|
case Relations.create_relation(%{
|
||||||
|
followed_by: true,
|
||||||
local_actor_id: local_actor.id,
|
local_actor_id: local_actor.id,
|
||||||
remote_actor_id: remote_actor.id,
|
remote_actor_id: remote_actor.id
|
||||||
followed_by: true
|
|
||||||
}) do
|
}) do
|
||||||
{:ok, relation} -> relation
|
{:ok, relation} -> {:ok, relation}
|
||||||
{:error, changeset} -> {:error, {:relation_creation_failed, changeset}}
|
{:error, changeset} -> {:error, {:relation_creation_failed, changeset}}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue