Change Relay from status to {status, message}
This commit is contained in:
parent
4634d99d0d
commit
12ccf0c4f8
4 changed files with 14 additions and 10 deletions
|
|
@ -102,7 +102,7 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIController do
|
|||
end
|
||||
|
||||
def relay_follow(conn, %{"relay_url" => target}) do
|
||||
status = Relay.follow(target)
|
||||
{status, message} = Relay.follow(target)
|
||||
|
||||
if status == :ok do
|
||||
conn
|
||||
|
|
@ -115,7 +115,7 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIController do
|
|||
end
|
||||
|
||||
def relay_unfollow(conn, %{"relay_url" => target}) do
|
||||
status = Relay.unfollow(target)
|
||||
{status, message} = Relay.unfollow(target)
|
||||
|
||||
if status == :ok do
|
||||
conn
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue