summaryrefslogtreecommitdiff
path: root/test/web/mastodon_api/mastodon_api_controller_test.exs
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2019-09-06 08:43:38 +0000
committerrinpatch <rinpatch@sdf.org>2019-09-06 08:43:38 +0000
commit896ffabe37406e85c2a3c2f30d2e882c68b5831e (patch)
tree4205d3cd8038ec25e31a427684a635baedc30a47 /test/web/mastodon_api/mastodon_api_controller_test.exs
parentd0e0f2380d726aebb930c0838e94bc876c3c7460 (diff)
parent70eed0594ce4fe2ec668c5ee3ad42c941b29888e (diff)
downloadpleroma-896ffabe37406e85c2a3c2f30d2e882c68b5831e.tar.gz
pleroma-896ffabe37406e85c2a3c2f30d2e882c68b5831e.zip
Merge branch 'so-long-twitterapi' into 'develop'
Removing TwitterAPI See merge request pleroma/pleroma!1605
Diffstat (limited to 'test/web/mastodon_api/mastodon_api_controller_test.exs')
-rw-r--r--test/web/mastodon_api/mastodon_api_controller_test.exs8
1 files changed, 2 insertions, 6 deletions
diff --git a/test/web/mastodon_api/mastodon_api_controller_test.exs b/test/web/mastodon_api/mastodon_api_controller_test.exs
index 427ee6f63..e18f8f0d1 100644
--- a/test/web/mastodon_api/mastodon_api_controller_test.exs
+++ b/test/web/mastodon_api/mastodon_api_controller_test.exs
@@ -21,7 +21,6 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do
alias Pleroma.Web.OAuth.Token
alias Pleroma.Web.OStatus
alias Pleroma.Web.Push
- alias Pleroma.Web.TwitterAPI.TwitterAPI
import Pleroma.Factory
import ExUnit.CaptureLog
import Tesla.Mock
@@ -1484,12 +1483,9 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do
filename: "an_image.jpg"
}
- media =
- TwitterAPI.upload(file, user, "json")
- |> Jason.decode!()
+ {:ok, %{id: media_id}} = ActivityPub.upload(file, actor: user.ap_id)
- {:ok, image_post} =
- CommonAPI.post(user, %{"status" => "cofe", "media_ids" => [media["media_id"]]})
+ {:ok, image_post} = CommonAPI.post(user, %{"status" => "cofe", "media_ids" => [media_id]})
conn =
conn