Skip to content

Public addressing

Public addressing is discussed here. The essential point here is that Public, as:Public, and https://www.w3.org/ns/activitystreams#Public are equivalent as JSON-LD and thus should be treated in the same way by Fediverse applications.

Examples

Example 1

```json title="activity"
{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "type": "Create",
  "actor": "http://pasture-one-actor/actor",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://gotosocial/users/cookie"
  ],
  "id": "http://pasture-one-actor/actor/mx9LU3myxkk",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://gotosocial/users/cookie"
    ],
    "id": "http://pasture-one-actor/actor/omw9IEYUoS4",
    "published": "2024-03-10T16:14:02Z",
    "content": "https://www.w3.org/ns/activitystreams#Public",
    "tag": [
      {
        "type": "Mention",
        "href": "http://gotosocial/users/cookie"
      }
    ]
  }
}
```


```json title="gotosocial"
{
  "id": "01HRMJ908G7VQTCW7TAHMSA5M3",
  "created_at": "2024-03-10T16:14:02.000Z",
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "sensitive": false,
  "spoiler_text": "",
  "visibility": "public",
  "language": null,
  "uri": "http://pasture-one-actor/actor/omw9IEYUoS4",
  "url": "http://pasture-one-actor/actor/omw9IEYUoS4",
  "replies_count": 0,
  "reblogs_count": 0,
  "favourites_count": 0,
  "favourited": false,
  "reblogged": false,
  "muted": false,
  "bookmarked": false,
  "pinned": false,
  "content": "https://www.w3.org/ns/activitystreams#Public",
  "reblog": null,
  "account": {
    "id": "01HRMJ7P5R3WM2HQXV0D46VR4N",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "display_name": "Test Actor",
    "locked": true,
    "discoverable": false,
    "bot": false,
    "created_at": "2024-03-10T16:13:19.003Z",
    "note": "",
    "url": "http://pasture-one-actor/actor",
    "avatar": "http://gotosocial/assets/default_avatars/GoToSocial_icon3.png",
    "avatar_static": "http://gotosocial/assets/default_avatars/GoToSocial_icon3.png",
    "header": "http://gotosocial/assets/default_header.png",
    "header_static": "http://gotosocial/assets/default_header.png",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 16,
    "last_status_at": "2024-03-10T16:14:02.000Z",
    "emojis": [],
    "fields": []
  },
  "media_attachments": [],
  "mentions": [
    {
      "id": "01WWJM9EYBAWF9FTX9Y4PV1MQM",
      "username": "cookie",
      "url": "http://gotosocial/@cookie",
      "acct": "cookie"
    }
  ],
  "tags": [],
  "emojis": [],
  "card": null,
  "poll": null
}
```

Example 2

```json title="activity"
{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "type": "Create",
  "actor": "http://pasture-one-actor/actor",
  "to": [
    "http://gotosocial/users/cookie",
    "as:Public"
  ],
  "id": "http://pasture-one-actor/actor/sQ9M-gkD9qs",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "as:Public",
      "http://gotosocial/users/cookie"
    ],
    "id": "http://pasture-one-actor/actor/sqYLxVw752Q",
    "published": "2024-03-10T16:14:04Z",
    "content": "as:Public",
    "tag": [
      {
        "type": "Mention",
        "href": "http://gotosocial/users/cookie"
      }
    ]
  }
}
```


```json title="gotosocial"
{
  "id": "01HRMJ9270JV8BZJGK4V1YSQM0",
  "created_at": "2024-03-10T16:14:04.000Z",
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "sensitive": false,
  "spoiler_text": "",
  "visibility": "public",
  "language": null,
  "uri": "http://pasture-one-actor/actor/sqYLxVw752Q",
  "url": "http://pasture-one-actor/actor/sqYLxVw752Q",
  "replies_count": 0,
  "reblogs_count": 0,
  "favourites_count": 0,
  "favourited": false,
  "reblogged": false,
  "muted": false,
  "bookmarked": false,
  "pinned": false,
  "content": "as:Public",
  "reblog": null,
  "account": {
    "id": "01HRMJ7P5R3WM2HQXV0D46VR4N",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "display_name": "Test Actor",
    "locked": true,
    "discoverable": false,
    "bot": false,
    "created_at": "2024-03-10T16:13:19.003Z",
    "note": "",
    "url": "http://pasture-one-actor/actor",
    "avatar": "http://gotosocial/assets/default_avatars/GoToSocial_icon3.png",
    "avatar_static": "http://gotosocial/assets/default_avatars/GoToSocial_icon3.png",
    "header": "http://gotosocial/assets/default_header.png",
    "header_static": "http://gotosocial/assets/default_header.png",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 17,
    "last_status_at": "2024-03-10T16:14:04.000Z",
    "emojis": [],
    "fields": []
  },
  "media_attachments": [],
  "mentions": [
    {
      "id": "01WWJM9EYBAWF9FTX9Y4PV1MQM",
      "username": "cookie",
      "url": "http://gotosocial/@cookie",
      "acct": "cookie"
    }
  ],
  "tags": [],
  "emojis": [],
  "card": null,
  "poll": null
}
```

Example 3

```json title="activity"
{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "type": "Create",
  "actor": "http://pasture-one-actor/actor",
  "to": [
    "Public",
    "http://gotosocial/users/cookie"
  ],
  "id": "http://pasture-one-actor/actor/EUkfb5VJqno",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "Public",
      "http://gotosocial/users/cookie"
    ],
    "id": "http://pasture-one-actor/actor/G7jsuOnc2jI",
    "published": "2024-03-10T16:14:06Z",
    "content": "Public",
    "tag": [
      {
        "type": "Mention",
        "href": "http://gotosocial/users/cookie"
      }
    ]
  }
}
```


no result