summaryrefslogtreecommitdiff
path: root/test/object
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2019-12-17 16:16:21 +0100
committerThomas Citharel <tcit@tcit.fr>2019-12-17 16:16:21 +0100
commitd2f1c4f658a8c995716aee3876cb46a0f48f99cb (patch)
tree511c593641a9c08d45ab8b53cc4c8b7beb1fcdc0 /test/object
parent38ad407395e838ddf1c11922806adc080af44d36 (diff)
downloadpleroma-d2f1c4f658a8c995716aee3876cb46a0f48f99cb.tar.gz
pleroma-d2f1c4f658a8c995716aee3876cb46a0f48f99cb.zip
Add ActivityPub Object Event type support
Adds Event support in the same way Video objects are handled, with the name of the object as message header. Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Diffstat (limited to 'test/object')
-rw-r--r--test/object/fetcher_test.exs9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/object/fetcher_test.exs b/test/object/fetcher_test.exs
index 9ae6b015d..2aad7a588 100644
--- a/test/object/fetcher_test.exs
+++ b/test/object/fetcher_test.exs
@@ -77,6 +77,15 @@ defmodule Pleroma.Object.FetcherTest do
assert object
end
+ test "it can fetch Mobilizon events" do
+ {:ok, object} =
+ Fetcher.fetch_object_from_id(
+ "https://mobilizon.org/events/252d5816-00a3-4a89-a66f-15bf65c33e39"
+ )
+
+ assert object
+ end
+
test "it can fetch wedistribute articles" do
{:ok, object} =
Fetcher.fetch_object_from_id("https://wedistribute.org/wp-json/pterotype/v1/object/85810")