aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/activity_pub/utils.ex
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 /lib/pleroma/web/activity_pub/utils.ex
parent38ad407395e838ddf1c11922806adc080af44d36 (diff)
downloadpleroma-d2f1c4f658a8c995716aee3876cb46a0f48f99cb.tar.gz
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 'lib/pleroma/web/activity_pub/utils.ex')
-rw-r--r--lib/pleroma/web/activity_pub/utils.ex11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/pleroma/web/activity_pub/utils.ex b/lib/pleroma/web/activity_pub/utils.ex
index e87d09134..db7084246 100644
--- a/lib/pleroma/web/activity_pub/utils.ex
+++ b/lib/pleroma/web/activity_pub/utils.ex
@@ -22,7 +22,16 @@ defmodule Pleroma.Web.ActivityPub.Utils do
require Logger
require Pleroma.Constants
- @supported_object_types ["Article", "Note", "Video", "Page", "Question", "Answer", "Audio"]
+ @supported_object_types [
+ "Article",
+ "Note",
+ "Event",
+ "Video",
+ "Page",
+ "Question",
+ "Answer",
+ "Audio"
+ ]
@strip_status_report_states ~w(closed resolved)
@supported_report_states ~w(open closed resolved)
@valid_visibilities ~w(public unlisted private direct)