Improve JSON-LD representation for Address and add it to the docs
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -37,6 +37,26 @@ defmodule Mobilizon.Service.ActivityPub.Utils do
|
||||
"category" => "sc:category",
|
||||
"uuid" => "sc:identifier",
|
||||
"maximumAttendeeCapacity" => "sc:maximumAttendeeCapacity",
|
||||
"location" => %{
|
||||
"@id" => "sc:location",
|
||||
"@type" => "sc:Place"
|
||||
},
|
||||
"Place" => "sc:Place",
|
||||
"PostalAddress" => "sc:PostalAddress",
|
||||
"GeoCoordinates" => "sc:GeoCoordinates",
|
||||
"address" => %{
|
||||
"@id" => "sc:address",
|
||||
"@type" => "sc:PostalAddress"
|
||||
},
|
||||
"geo" => %{
|
||||
"@id" => "sc:geo",
|
||||
"@type" => "sc:GeoCoordinates"
|
||||
},
|
||||
"addressCountry" => "sc:addressCountry",
|
||||
"addressRegion" => "sc:addressRegion",
|
||||
"postalCode" => "sc:postalCode",
|
||||
"addressLocality" => "sc:addressLocality",
|
||||
"streetAddress" => "sc:streetAddress",
|
||||
"mz" => "https://joinmobilizon.org/ns#",
|
||||
"repliesModerationOptionType" => %{
|
||||
"@id" => "mz:repliesModerationOptionType",
|
||||
|
||||
Reference in New Issue
Block a user