summaryrefslogtreecommitdiff
path: root/test/web/mastodon_api
diff options
context:
space:
mode:
authorkaniini <nenolod@gmail.com>2019-03-22 00:25:35 +0000
committerkaniini <nenolod@gmail.com>2019-03-22 00:25:35 +0000
commitb548181b52c4397d5034cfd95b2ef7e05c9c9c22 (patch)
treea847bb70d52da43b2f0cca45f7ea49cb4e664c5a /test/web/mastodon_api
parentbf8b29e080a6a8a369abb53a26229bb0544de1c0 (diff)
parenta223e65f35da158ef79f05f65316920dcecaa54b (diff)
downloadpleroma-b548181b52c4397d5034cfd95b2ef7e05c9c9c22.tar.gz
pleroma-b548181b52c4397d5034cfd95b2ef7e05c9c9c22.zip
Merge branch 'feature/mastoapi-ext-conversation-id' into 'develop'
Mastodon API: add conversation_id extension See merge request pleroma/pleroma!961
Diffstat (limited to 'test/web/mastodon_api')
-rw-r--r--test/web/mastodon_api/status_view_test.exs6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/web/mastodon_api/status_view_test.exs b/test/web/mastodon_api/status_view_test.exs
index ade0ca9f9..e1c9b2c8f 100644
--- a/test/web/mastodon_api/status_view_test.exs
+++ b/test/web/mastodon_api/status_view_test.exs
@@ -9,6 +9,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do
alias Pleroma.User
alias Pleroma.Web.ActivityPub.ActivityPub
alias Pleroma.Web.CommonAPI
+ alias Pleroma.Web.CommonAPI.Utils
alias Pleroma.Web.MastodonAPI.AccountView
alias Pleroma.Web.MastodonAPI.StatusView
alias Pleroma.Web.OStatus
@@ -72,6 +73,8 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do
note = insert(:note_activity)
user = User.get_cached_by_ap_id(note.data["actor"])
+ convo_id = Utils.context_to_conversation_id(note.data["object"]["context"])
+
status = StatusView.render("status.json", %{activity: note})
created_at =
@@ -122,7 +125,8 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do
}
],
pleroma: %{
- local: true
+ local: true,
+ conversation_id: convo_id
}
}