Fix Relay
This commit is contained in:
parent
4ea1a61b00
commit
c6fba62666
2 changed files with 11 additions and 12 deletions
|
|
@ -53,9 +53,10 @@ defmodule Pleroma.Web.ActivityPub.Relay do
|
|||
|
||||
@spec list() :: {:ok, [String.t()]} | {:error, any()}
|
||||
def list do
|
||||
with %User{following: following} = _user <- get_actor() do
|
||||
with %User{} = user <- get_actor() do
|
||||
list =
|
||||
following
|
||||
user
|
||||
|> User.following()
|
||||
|> Enum.map(fn entry -> URI.parse(entry).host end)
|
||||
|> Enum.uniq()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue