logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: 254f2ea85400ebd692fc4a45f5ac22fedd49ec09
parent 98f268e5ecc5bab98c98270a582f8b3f0e3be4e8
Author: Claudio Maradonna <penguyman@stronzi.org>
Date:   Thu,  9 Jun 2022 23:38:50 +0200

ipfs: remove unused alias

fix analysis job

Diffstat:

Mlib/pleroma/uploaders/ipfs.ex4++--
Mtest/pleroma/uploaders/ipfs_test.exs1-
2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/lib/pleroma/uploaders/ipfs.ex b/lib/pleroma/uploaders/ipfs.ex @@ -16,11 +16,11 @@ defmodule Pleroma.Uploaders.IPFS do Path.join([post_base_url, method]) end - def put_file_endpoint() do + def put_file_endpoint do get_final_url("/api/v0/add") end - def delete_file_endpoint() do + def delete_file_endpoint do get_final_url("/api/v0/files/rm") end diff --git a/test/pleroma/uploaders/ipfs_test.exs b/test/pleroma/uploaders/ipfs_test.exs @@ -6,7 +6,6 @@ defmodule Pleroma.Uploaders.IPFSTest do use Pleroma.DataCase alias Pleroma.Uploaders.IPFS - alias Tesla.Multipart import Mock import ExUnit.CaptureLog