summaryrefslogtreecommitdiff
path: root/test/web/mastodon_api
diff options
context:
space:
mode:
authorIvan Tashkinov <ivantashkinov@gmail.com>2019-12-19 17:24:08 +0300
committerIvan Tashkinov <ivantashkinov@gmail.com>2019-12-19 17:24:08 +0300
commitead2d18826cf446fd7da542c55b6601e9bfc001c (patch)
tree8fb08b5673235ae9844ca858a34b742d1b548a70 /test/web/mastodon_api
parent455e072d27f28c39050b2dc24b346a8f2ef30f90 (diff)
parentd23a80e6911a85e2377ad2336a050e0206c74db9 (diff)
downloadpleroma-ead2d18826cf446fd7da542c55b6601e9bfc001c.tar.gz
pleroma-ead2d18826cf446fd7da542c55b6601e9bfc001c.zip
Merge remote-tracking branch 'remotes/origin/develop' into oauth-scopes-tweaks-and-tests
Diffstat (limited to 'test/web/mastodon_api')
-rw-r--r--test/web/mastodon_api/views/status_view_test.exs15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/web/mastodon_api/views/status_view_test.exs b/test/web/mastodon_api/views/status_view_test.exs
index bdd87a79e..17b6ebcbc 100644
--- a/test/web/mastodon_api/views/status_view_test.exs
+++ b/test/web/mastodon_api/views/status_view_test.exs
@@ -394,6 +394,21 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do
assert length(represented[:media_attachments]) == 1
end
+ test "a Mobilizon event" do
+ user = insert(:user)
+
+ {:ok, object} =
+ Pleroma.Object.Fetcher.fetch_object_from_id(
+ "https://mobilizon.org/events/252d5816-00a3-4a89-a66f-15bf65c33e39"
+ )
+
+ %Activity{} = activity = Activity.get_create_by_object_ap_id(object.data["id"])
+
+ represented = StatusView.render("show.json", %{for: user, activity: activity})
+
+ assert represented[:id] == to_string(activity.id)
+ end
+
describe "build_tags/1" do
test "it returns a a dictionary tags" do
object_tags = [