diff --git a/lib/federation/activity_pub/utils.ex b/lib/federation/activity_pub/utils.ex index eeb802a88..51441fc05 100644 --- a/lib/federation/activity_pub/utils.ex +++ b/lib/federation/activity_pub/utils.ex @@ -165,6 +165,10 @@ defmodule Mobilizon.Federation.ActivityPub.Utils do "todos" => %{ "@id" => "mz:todos", "@type" => "@id" + }, + "status" => %{ + "@id" => "ical:status", + "@type" => "ical:status" } } ] diff --git a/lib/federation/activity_stream/converter/event.ex b/lib/federation/activity_stream/converter/event.ex index d08c61db0..2eca4e805 100644 --- a/lib/federation/activity_stream/converter/event.ex +++ b/lib/federation/activity_stream/converter/event.ex @@ -81,7 +81,11 @@ defmodule Mobilizon.Federation.ActivityStream.Converter.Event do external_participation_url: object["externalParticipationUrl"], options: options, metadata: metadata, - status: object |> Map.get("ical:status", "CONFIRMED") |> String.downcase(), + # Remove fallback in MBZ 5.x + status: + object + |> Map.get("status", Map.get(object, "ical:status", "CONFIRMED")) + |> String.downcase(), online_address: object |> Map.get("attachment", []) |> get_online_address(), phone_address: object["phoneAddress"], draft: object["draft"] == true, @@ -142,7 +146,9 @@ defmodule Mobilizon.Federation.ActivityStream.Converter.Event do "anonymousParticipationEnabled" => event.options.anonymous_participation, "attachment" => Enum.map(event.metadata, &EventMetadataConverter.metadata_to_as/1), "draft" => event.draft, + # Remove me in MBZ 5.x "ical:status" => event.status |> to_string |> String.upcase(), + "status" => event.status |> to_string |> String.upcase(), "id" => event.url, "url" => event.url, "inLanguage" => event.language, diff --git a/src/components/Account/ActorAutoComplete.vue b/src/components/Account/ActorAutoComplete.vue index 47da387aa..6e561d5a0 100644 --- a/src/components/Account/ActorAutoComplete.vue +++ b/src/components/Account/ActorAutoComplete.vue @@ -7,7 +7,7 @@ :allow-new="false" :open-on-focus="false" field="displayName" - placeholder="Add a recipient" + :placeholder="t('Add a recipient')" @typing="getActors" >