cc820d6b63
* Data doesn't need anymore to be converted to ActivityStream format to be saved (this was taken from Pleroma and not at all a good idea here) * Everything saved when creating an event is inserted into PostgreSQL in a single transaction
67 lines
2.4 KiB
JSON
67 lines
2.4 KiB
JSON
{
|
|
"@context": [
|
|
"https://www.w3.org/ns/activitystreams",
|
|
"https://w3id.org/security/v1",
|
|
{
|
|
"mblzn": "https://joinmobilizon.org/ns#",
|
|
"Hashtag": "as:Hashtag",
|
|
"sc": "http://schema.org#",
|
|
"Place": "sc:Place",
|
|
"PostalAddress": "sc:PostalAddress",
|
|
"uuid": "sc:identifier"
|
|
}
|
|
],
|
|
"actor": "https://event1.tcit.fr/@tcit",
|
|
"cc": [
|
|
"https://framapiaf.org/users/admin/followers",
|
|
"https://framapiaf.org/users/tcit"
|
|
],
|
|
"id": "https://event1.tcit.fr/@tcit/events/109ccdfd-ee3e-46e1-a877-6c228763df0c/activity",
|
|
"object": {
|
|
"attachment": [],
|
|
"attributedTo": "https://event1.tcit.fr/@tcit",
|
|
"startTime": "2018-02-12T14:08:20Z",
|
|
"cc": [
|
|
"https://framapiaf.org/users/admin/followers",
|
|
"https://framapiaf.org/users/tcit"
|
|
],
|
|
"content": "<p><span class=\"h-card\"><a href=\"https://framapiaf.org/users/tcit\" class=\"u-url mention\">@<span>tcit</span></a></span></p>",
|
|
"category": "TODO remove me",
|
|
"id": "https://event1.tcit.fr/@tcit/events/109ccdfd-ee3e-46e1-a877-6c228763df0c",
|
|
"inReplyTo": null,
|
|
"location": {
|
|
"type": "Place",
|
|
"name": "Locaux de Framasoft",
|
|
"id": "https://event1.tcit.fr/address/eeecc11d-0030-43e8-a897-6422876372jd",
|
|
"address": {
|
|
"type": "PostalAddress",
|
|
"streetAddress": "10 Rue Jangot",
|
|
"postalCode": "69007",
|
|
"addressLocality": "Lyon",
|
|
"addressRegion": "Auvergne Rhône Alpes",
|
|
"addressCountry": "France"
|
|
}
|
|
},
|
|
"name": "My first event",
|
|
"published": "2018-02-12T14:08:20Z",
|
|
"tag": [
|
|
{
|
|
"href": "https://framapiaf.org/users/tcit",
|
|
"name": "@tcit@framapiaf.org",
|
|
"type": "Mention"
|
|
}
|
|
],
|
|
"to": [
|
|
"https://www.w3.org/ns/activitystreams#Public"
|
|
],
|
|
"type": "Event",
|
|
"url": "https://event1.tcit.fr/@tcit/events/109ccdfd-ee3e-46e1-a877-6c228763df0c",
|
|
"uuid": "109ccdfd-ee3e-46e1-a877-6c228763df0c"
|
|
},
|
|
"published": "2018-02-12T14:08:20Z",
|
|
"to": [
|
|
"https://www.w3.org/ns/activitystreams#Public"
|
|
],
|
|
"type": "Create"
|
|
}
|