Change Relay from status to {status, message}

This commit is contained in:
Haelwenn (lanodan) Monnier 2018-11-10 15:31:37 +01:00
commit 12ccf0c4f8
No known key found for this signature in database
GPG key ID: D5B7A8E43C997DEE
4 changed files with 14 additions and 10 deletions

View file

@ -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