diff options
author | lain <lain@soykaf.club> | 2021-01-04 13:38:31 +0100 |
---|---|---|
committer | lain <lain@soykaf.club> | 2021-01-04 13:38:31 +0100 |
commit | e1e7e4d379a67779a799049728d143eee2b88a7e (patch) | |
tree | 7506ca5b79a1eb8437a9f5f125f428532aa074b1 /test/pleroma/web/mastodon_api/controllers/status_controller_test.exs | |
parent | afe9c152ab757237313cc15d97855ae39768ddc1 (diff) |
Object: Rework how Object.normalize works
Now it defaults to not fetching, and the option is named.
Diffstat (limited to 'test/pleroma/web/mastodon_api/controllers/status_controller_test.exs')
-rw-r--r-- | test/pleroma/web/mastodon_api/controllers/status_controller_test.exs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/pleroma/web/mastodon_api/controllers/status_controller_test.exs b/test/pleroma/web/mastodon_api/controllers/status_controller_test.exs index de542e5df..ffff0ae9d 100644 --- a/test/pleroma/web/mastodon_api/controllers/status_controller_test.exs +++ b/test/pleroma/web/mastodon_api/controllers/status_controller_test.exs @@ -800,7 +800,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusControllerTest do test "when you created it" do %{user: author, conn: conn} = oauth_access(["write:statuses"]) activity = insert(:note_activity, user: author) - object = Object.normalize(activity) + object = Object.normalize(activity, fetch: false) content = object.data["content"] source = object.data["source"] @@ -1374,7 +1374,9 @@ defmodule Pleroma.Web.MastodonAPI.StatusControllerTest do activity = Activity.get_by_id_with_object(id) - assert Object.normalize(activity).data["inReplyTo"] == Object.normalize(replied_to).data["id"] + assert Object.normalize(activity, fetch: false).data["inReplyTo"] == + Object.normalize(replied_to, fetch: false).data["id"] + assert Activity.get_in_reply_to_activity(activity).id == replied_to.id # Reblog from the third user |