fix(activitypub): compact ical:status in activitystream data

Was kept for no other reason than disambiguation with https://schema.org/status, but no need if we
specify the correct alias in the context.

Keeps a fallback for older versions compatibility

Closes #1378

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2023-12-04 13:48:04 +01:00
parent 10ce812660
commit 5e8f9afb62
3 changed files with 17 additions and 1 deletions

View File

@@ -49,6 +49,7 @@ defmodule Mobilizon.Federation.ActivityPub.Types.EventsTest do
"name" => @event_title,
"repliesModerationOption" => nil,
"startTime" => @event_begins_on,
"status" => "CONFIRMED",
"tag" => [],
"to" => [@ap_public],
"type" => "Event"
@@ -96,6 +97,7 @@ defmodule Mobilizon.Federation.ActivityPub.Types.EventsTest do
"name" => @event_title,
"repliesModerationOption" => nil,
"startTime" => @event_begins_on,
"status" => "CONFIRMED",
"tag" => [],
"to" => [^followers_url],
"type" => "Event"
@@ -152,6 +154,7 @@ defmodule Mobilizon.Federation.ActivityPub.Types.EventsTest do
"name" => @event_title,
"repliesModerationOption" => nil,
"startTime" => @event_begins_on,
"status" => "CONFIRMED",
"tag" => [],
"to" => [@ap_public],
"type" => "Event"
@@ -200,6 +203,7 @@ defmodule Mobilizon.Federation.ActivityPub.Types.EventsTest do
"name" => @event_updated_title,
"repliesModerationOption" => nil,
"startTime" => @event_begins_on,
"status" => "CONFIRMED",
"tag" => [],
"to" => [@ap_public],
"type" => "Event"
@@ -260,6 +264,7 @@ defmodule Mobilizon.Federation.ActivityPub.Types.EventsTest do
"name" => @event_updated_title,
"repliesModerationOption" => nil,
"startTime" => @event_begins_on,
"status" => "CONFIRMED",
"tag" => [],
"to" => [@ap_public],
"type" => "Event"
@@ -320,6 +325,7 @@ defmodule Mobilizon.Federation.ActivityPub.Types.EventsTest do
"name" => @event_updated_title,
"repliesModerationOption" => nil,
"startTime" => @event_begins_on,
"status" => "CONFIRMED",
"tag" => [],
"to" => [@ap_public],
"type" => "Event"