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://sharkey/users/9qjnvr5wi3ew0001"
  ],
  "id": "http://pasture_one_actor/actor/lxb9wjqp6s8",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture_one_actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/9qjnvr5wi3ew0001"
    ],
    "id": "http://pasture_one_actor/actor/HDKRxmrhy1I",
    "published": "2024-03-06T17:55:07Z",
    "content": "https://www.w3.org/ns/activitystreams#Public"
  }
}
```


```json title="sharkey"
{
  "id": "9qjnyb94pbvn000l",
  "uri": "http://pasture_one_actor/actor/HDKRxmrhy1I",
  "url": "http://pasture_one_actor/actor/HDKRxmrhy1I",
  "account": {
    "id": "9qjnxfoapbvn0002",
    "username": "actor",
    "acct": "actor@pasture_one_actor",
    "fqn": "actor@pasture_one_actor",
    "display_name": "Test Actor",
    "locked": false,
    "created_at": "2024-03-06T17:54:26.074Z",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 16,
    "note": "",
    "url": "http://pasture_one_actor/actor",
    "uri": "http://pasture_one_actor/actor",
    "avatar": "https://dev.joinsharkey.org/static-assets/avatar.png",
    "avatar_static": "https://dev.joinsharkey.org/static-assets/avatar.png",
    "header": "https://dev.joinsharkey.org/static-assets/transparent.png",
    "header_static": "https://dev.joinsharkey.org/static-assets/transparent.png",
    "emojis": [],
    "moved": null,
    "fields": [],
    "bot": false,
    "discoverable": true
  },
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "reblog": null,
  "content": "<p><a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"https://www.w3.org/ns/activitystreams#Public\">www.w3.org/ns/activitystreams#Public</a></p>",
  "content_type": "text/x.misskeymarkdown",
  "text": "https://www.w3.org/ns/activitystreams#Public",
  "created_at": "2024-03-06T17:55:07.000Z",
  "emojis": [],
  "replies_count": 0,
  "reblogs_count": 0,
  "favourites_count": 0,
  "reblogged": false,
  "favourited": false,
  "muted": false,
  "sensitive": false,
  "spoiler_text": "",
  "visibility": "public",
  "media_attachments": [],
  "mentions": [],
  "tags": [],
  "card": null,
  "poll": null,
  "application": null,
  "language": null,
  "pinned": false,
  "reactions": [],
  "emoji_reactions": [],
  "bookmarked": false,
  "quote": 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": [
    "as:Public",
    "http://sharkey/users/9qjnvr5wi3ew0001"
  ],
  "id": "http://pasture_one_actor/actor/pT716Y9Qc6Q",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture_one_actor/actor",
    "to": [
      "as:Public",
      "http://sharkey/users/9qjnvr5wi3ew0001"
    ],
    "id": "http://pasture_one_actor/actor/erlocwNAnFE",
    "published": "2024-03-06T17:55:09Z",
    "content": "as:Public"
  }
}
```


```json title="sharkey"
{
  "id": "9qjnycsopbvn000m",
  "uri": "http://pasture_one_actor/actor/erlocwNAnFE",
  "url": "http://pasture_one_actor/actor/erlocwNAnFE",
  "account": {
    "id": "9qjnxfoapbvn0002",
    "username": "actor",
    "acct": "actor@pasture_one_actor",
    "fqn": "actor@pasture_one_actor",
    "display_name": "Test Actor",
    "locked": false,
    "created_at": "2024-03-06T17:54:26.074Z",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 17,
    "note": "",
    "url": "http://pasture_one_actor/actor",
    "uri": "http://pasture_one_actor/actor",
    "avatar": "https://dev.joinsharkey.org/static-assets/avatar.png",
    "avatar_static": "https://dev.joinsharkey.org/static-assets/avatar.png",
    "header": "https://dev.joinsharkey.org/static-assets/transparent.png",
    "header_static": "https://dev.joinsharkey.org/static-assets/transparent.png",
    "emojis": [],
    "moved": null,
    "fields": [],
    "bot": false,
    "discoverable": true
  },
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "reblog": null,
  "content": "<p><span>as:Public</span></p>",
  "content_type": "text/x.misskeymarkdown",
  "text": "as:Public",
  "created_at": "2024-03-06T17:55:09.000Z",
  "emojis": [],
  "replies_count": 0,
  "reblogs_count": 0,
  "favourites_count": 0,
  "reblogged": false,
  "favourited": false,
  "muted": false,
  "sensitive": false,
  "spoiler_text": "",
  "visibility": "public",
  "media_attachments": [],
  "mentions": [],
  "tags": [],
  "card": null,
  "poll": null,
  "application": null,
  "language": null,
  "pinned": false,
  "reactions": [],
  "emoji_reactions": [],
  "bookmarked": false,
  "quote": 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://sharkey/users/9qjnvr5wi3ew0001"
  ],
  "id": "http://pasture_one_actor/actor/eYIVNrLZ990",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture_one_actor/actor",
    "to": [
      "Public",
      "http://sharkey/users/9qjnvr5wi3ew0001"
    ],
    "id": "http://pasture_one_actor/actor/eFqXsCVf57g",
    "published": "2024-03-06T17:55:11Z",
    "content": "Public"
  }
}
```


```json title="sharkey"
{
  "id": "9qjnyec8pbvn000n",
  "uri": "http://pasture_one_actor/actor/eFqXsCVf57g",
  "url": "http://pasture_one_actor/actor/eFqXsCVf57g",
  "account": {
    "id": "9qjnxfoapbvn0002",
    "username": "actor",
    "acct": "actor@pasture_one_actor",
    "fqn": "actor@pasture_one_actor",
    "display_name": "Test Actor",
    "locked": false,
    "created_at": "2024-03-06T17:54:26.074Z",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 18,
    "note": "",
    "url": "http://pasture_one_actor/actor",
    "uri": "http://pasture_one_actor/actor",
    "avatar": "https://dev.joinsharkey.org/static-assets/avatar.png",
    "avatar_static": "https://dev.joinsharkey.org/static-assets/avatar.png",
    "header": "https://dev.joinsharkey.org/static-assets/transparent.png",
    "header_static": "https://dev.joinsharkey.org/static-assets/transparent.png",
    "emojis": [],
    "moved": null,
    "fields": [],
    "bot": false,
    "discoverable": true
  },
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "reblog": null,
  "content": "<p><span>Public</span></p>",
  "content_type": "text/x.misskeymarkdown",
  "text": "Public",
  "created_at": "2024-03-06T17:55:11.000Z",
  "emojis": [],
  "replies_count": 0,
  "reblogs_count": 0,
  "favourites_count": 0,
  "reblogged": false,
  "favourited": false,
  "muted": false,
  "sensitive": false,
  "spoiler_text": "",
  "visibility": "public",
  "media_attachments": [],
  "mentions": [],
  "tags": [],
  "card": null,
  "poll": null,
  "application": null,
  "language": null,
  "pinned": false,
  "reactions": [],
  "emoji_reactions": [],
  "bookmarked": false,
  "quote": null
}
```