From 78aa705831b69b6e4959694408b482bc69a4cc7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Menrath?= Date: Sat, 20 Jan 2024 14:29:28 +0100 Subject: [PATCH] wip event import document --- event_import.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/event_import.md b/event_import.md index bef6f60..2bfb0fb 100644 --- a/event_import.md +++ b/event_import.md @@ -3,6 +3,8 @@ gitea: none include_toc: true --- +Status: draft. This document should be reviewed by the other main developers. + # Validation/Import of remote events This document gives an overview how remote `Event` objects are treated by common Fediverse applications. @@ -100,3 +102,29 @@ Currently Gancio does not seem to handle any visibility or replies-policy option ### Banner image Gancio takes the first `attachment` of the `Event` object as the banner image of the event. It optionally supports [`name`](https://www.w3.org/TR/activitystreams-vocabulary/#dfn-name) as the alternative text and [`focalPoint`](https://docs.joinmastodon.org/spec/activitypub/#focalPoint). + + +## Plemora + +**Last uptaded**: 2024-01-20 + +**Information sources**: Plemora has a open [Pull Request towards Mobilizon compatible events](https://git.pleroma.social/pleroma/pleroma/-/merge_requests/3955/diffs) which Rebased (a fork of Plemora) has already merged. + +### Required + +This probably has a lot of errors still. [Source Code](https://git.pleroma.social/pleroma/pleroma/-/blob/b1a06c394736be833f8220a5ec3d5d2702d9519c/lib/pleroma/web/activity_pub/object_validators/event_validator.ex). + +- `id`: even though Gancio currently does not [list it as required in its source code](https://framagit.org/les/gancio/-/blob/master/server/federation/events.js?ref_type=heads#L19), there will be an error without out it. +- [`name`](https://www.w3.org/TR/activitystreams-vocabulary/#dfn-name): The events title. +- [`startTime`](https://www.w3.org/TR/activitystreams-vocabulary/#dfn-startTime) +- [`endTime`](https://www.w3.org/TR/activitystreams-vocabulary/#dfn-endTime) + + +### Optional + +- [`joinMode`](https://docs.joinmobilizon.org/contribute/activity_pub/#joinmode): `[free, restricted, invite, external]` default is `free`. +- [`location`](https://www.w3.org/TR/activitystreams-vocabulary/#dfn-location): The subkey [`address`](https://schema.org/address) is accepted, but currently ony as [`PostalAddress`](https://schema.org/PostalAddress) with the fields `postalCode`, `addressRegion`, `streetAddress`, `addressCountry` and `addressLocality`. + +### Handling of visibility + +Does not seem to be handled. \ No newline at end of file