Expose remainingAttendeeCapacity and participantCount through AP

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2022-02-08 15:27:53 +01:00
parent 87b37a4153
commit 11ac2dcceb
3 changed files with 46 additions and 0 deletions

View File

@@ -69,6 +69,7 @@ defmodule Mobilizon.Federation.ActivityPub.Utils do
"category" => "sc:category",
"uuid" => "sc:identifier",
"maximumAttendeeCapacity" => "sc:maximumAttendeeCapacity",
"remainingAttendeeCapacity" => "sc:remainingAttendeeCapacity",
"location" => %{
"@id" => "sc:location",
"@type" => "sc:Place"
@@ -112,6 +113,10 @@ defmodule Mobilizon.Federation.ActivityPub.Utils do
"@id" => "mz:participationMessage",
"@type" => "sc:Text"
},
"participantCount" => %{
"@id" => "mz:participantCount",
"@type" => "sc:Integer"
},
"isOnline" => %{
"@type" => "sc:Boolean",
"@id" => "mz:isOnline"