Group

By Fediverse Developer Network

https://fedidevs.org/projects/server-apps/communecter/objects/group/

A Group is activity used for federation group in Communecter.The federation of groups in Communecter expands the concept of collaboration by connecting multiple groups across different regions or topics. These groups can:

Properties

PropertyData typeDescription
type*StringThe object type (Group)
id*String (URI)The URI that identifies the group
attributedToString (URI)The URI of the user who posted the note
name*StringThe name of group
description*StringThe description of group
published*DatetimeThe date and time when the group was published
mediaAttachmentsArrayAn array of objects representing the media attached to the group
tagArrayAn array of strings representing the tags associated with the group

* Required properties.

Attachment Object

PropertyData TypeDescription
type*StringThe object type (Document or Link)
nameStringThe name or title of the attachment
url*String (URL)The URL of the attachment
mediaTypeStringThe media type of the attachment (e.g., image/png, text/html)
categoryStringThe category or classification of the attachment

Place Object

PropertyData TypeDescription
type*StringThe object type (Place)
id*String (URI)The URI that identifies the place
nameStringThe name of the place
addressObject (Address)The address details of the place

Address Object

PropertyData TypeDescription
type*StringThe object type (PostalAddress)
addressCountryStringThe country of the address
addressLocalityStringThe locality (city, town, etc.) of the address
addressRegionStringThe region (state, province, etc.) of the address
postalCodeStringThe postal code of the address
streetAddressStringThe street address of the place

Example

{
  "type": "Note",
  "id": "https://communecter.org/api/activitypub/object/id/96a15d71d725c",
  "author": "John Doe",
  "content": "This is an example note in Communecter.",
  "published": "2023-07-02T14:30:00Z",
  "tags": ["community", "event"],
  "attachments": [
    {
      "type": "Image",
      "name": "Photo",
      "url": "https://example.com/images/icon.jpg",
      "mediaType": "image/jpeg"
    },
    {
      "type": "Link",
      "name": "Website",
      "url": "https://example.com",
      "mediaType": "text/html"
    }
  ]
}