diff options
author | Ivan Tashkinov <ivantashkinov@gmail.com> | 2018-12-06 10:26:17 +0300 |
---|---|---|
committer | Ivan Tashkinov <ivantashkinov@gmail.com> | 2018-12-06 10:26:17 +0300 |
commit | 3e90f688f14310e92fe9343f2680c58d74f71cb6 (patch) | |
tree | 3b43cc25ef81898830f7d74aafe6d85d945f4d4e /test | |
parent | 3b5be09f4544ab1b3f6821fd4bbe047f94ef71ac (diff) | |
download | pleroma-3e90f688f14310e92fe9343f2680c58d74f71cb6.tar.gz |
[#210] Mastodon: actor storing for media uploads, ownership check to update_media.
Refactoring.
Diffstat (limited to 'test')
-rw-r--r-- | test/web/mastodon_api/mastodon_api_controller_test.exs | 6 |
1 files changed, 5 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 b5839cff1..d952cecc8 100644 --- a/test/web/mastodon_api/mastodon_api_controller_test.exs +++ b/test/web/mastodon_api/mastodon_api_controller_test.exs @@ -2,7 +2,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do use Pleroma.Web.ConnCase alias Pleroma.Web.TwitterAPI.TwitterAPI - alias Pleroma.{Repo, User, Activity, Notification} + alias Pleroma.{Repo, User, Object, Activity, Notification} alias Pleroma.Web.{OStatus, CommonAPI} alias Pleroma.Web.ActivityPub.ActivityPub @@ -959,6 +959,10 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do assert media["type"] == "image" assert media["description"] == desc + assert media["id"] + + object = Repo.get(Object, media["id"]) + assert object.data["actor"] == User.ap_id(user) end test "hashtag timeline", %{conn: conn} do |