summaryrefslogtreecommitdiff
path: root/test/web/mastodon_api/mastodon_api_controller_test.exs
diff options
context:
space:
mode:
authorIvan Tashkinov <ivantashkinov@gmail.com>2018-12-05 13:37:06 +0300
committerIvan Tashkinov <ivantashkinov@gmail.com>2018-12-05 13:37:06 +0300
commit848151f7cbf372d008c178d13c9a74942164c955 (patch)
tree1bc1cf906613de308d6c16dea7667908712dcdbc /test/web/mastodon_api/mastodon_api_controller_test.exs
parent53797d19c5e8463388862eaa20931c8cb78d66a6 (diff)
downloadpleroma-848151f7cbf372d008c178d13c9a74942164c955.tar.gz
pleroma-848151f7cbf372d008c178d13c9a74942164c955.zip
[#210] [TwitterAPI] Made actor be stored for uploads. Added ownership check
to `update_media` action. Added controller tests for `upload` and `update_media` actions. Refactoring.
Diffstat (limited to 'test/web/mastodon_api/mastodon_api_controller_test.exs')
-rw-r--r--test/web/mastodon_api/mastodon_api_controller_test.exs2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/web/mastodon_api/mastodon_api_controller_test.exs b/test/web/mastodon_api/mastodon_api_controller_test.exs
index 098acb59f..b5839cff1 100644
--- a/test/web/mastodon_api/mastodon_api_controller_test.exs
+++ b/test/web/mastodon_api/mastodon_api_controller_test.exs
@@ -804,7 +804,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do
}
media =
- TwitterAPI.upload(file, "json")
+ TwitterAPI.upload(file, user, "json")
|> Poison.decode!()
{:ok, image_post} =