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

activity
{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "type": "Create",
  "actor": "http://pasture-one-actor/actor",
  "to": [
    "http://hollo/@john",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/wTbnb2u_n94",
  "published": "2024-10-30T15:56:16Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://hollo/@john"
    ],
    "id": "http://pasture-one-actor/actor/EvQymmxNHig",
    "published": "2024-10-30T15:56:16Z",
    "content": "https://www.w3.org/ns/activitystreams#Public",
    "tag": [
      {
        "type": "Mention",
        "href": "http://gotosocial/users/cookie"
      }
    ]
  }
}
hollo
{
  "id": "0192de24-5500-737a-80c8-d2f806606c99",
  "created_at": "2024-10-30T15:56:16.000Z",
  "in_reply_to_id": null,
  "sensitive": false,
  "spoiler_text": "",
  "visibility": "public",
  "language": null,
  "uri": "http://pasture-one-actor/actor/EvQymmxNHig",
  "url": null,
  "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,
  "quote_id": null,
  "quote": null,
  "application": null,
  "account": {
    "id": "0192de24-1e6d-712c-9efb-1801e3b352b1",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "display_name": "Test Actor",
    "locked": false,
    "bot": false,
    "created_at": "2024-10-30T15:56:01.966Z",
    "note": "",
    "url": "http://pasture-one-actor/actor",
    "avatar": "http://hollo/image/avatars/original/missing.png",
    "avatar_static": "http://hollo/image/avatars/original/missing.png",
    "header": "http://hollo/image/headers/original/missing.png",
    "header_static": "http://hollo/image/headers/original/missing.png",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 0,
    "moved": null,
    "last_status_at": null,
    "emojis": [],
    "fields": []
  },
  "media_attachments": [],
  "mentions": [],
  "tags": [],
  "card": null,
  "emojis": [],
  "emoji_reactions": [],
  "poll": null,
  "filtered": null
}
sharkey
{
  "id": "9zzm8ezcte6p000r",
  "uri": "http://pasture-one-actor/actor/381k_pzNjv4",
  "url": "http://pasture-one-actor/actor/381k_pzNjv4",
  "account": {
    "id": "9zzm83xete6p0002",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "fqn": "actor@pasture-one-actor",
    "display_name": "Test Actor",
    "locked": false,
    "created_at": "2024-10-30T15:48:24.674Z",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 20,
    "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-10-30T15:48:39.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,
  "edited_at": null
}

Example 2

activity
{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "type": "Create",
  "actor": "http://pasture-one-actor/actor",
  "to": [
    "http://hollo/@john",
    "as:Public"
  ],
  "id": "http://pasture-one-actor/actor/emdq8e18tKU",
  "published": "2024-10-30T15:56:17Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "as:Public",
      "http://hollo/@john"
    ],
    "id": "http://pasture-one-actor/actor/S63hll9DzhE",
    "published": "2024-10-30T15:56:17Z",
    "content": "as:Public",
    "tag": [
      {
        "type": "Mention",
        "href": "http://gotosocial/users/cookie"
      }
    ]
  }
}
hollo
{
  "id": "0192de24-58e8-7ab2-9320-969d744a5464",
  "created_at": "2024-10-30T15:56:17.000Z",
  "in_reply_to_id": null,
  "sensitive": false,
  "spoiler_text": "",
  "visibility": "public",
  "language": null,
  "uri": "http://pasture-one-actor/actor/S63hll9DzhE",
  "url": null,
  "replies_count": 0,
  "reblogs_count": 0,
  "favourites_count": 0,
  "favourited": false,
  "reblogged": false,
  "muted": false,
  "bookmarked": false,
  "pinned": false,
  "content": "as:Public",
  "reblog": null,
  "quote_id": null,
  "quote": null,
  "application": null,
  "account": {
    "id": "0192de24-1e6d-712c-9efb-1801e3b352b1",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "display_name": "Test Actor",
    "locked": false,
    "bot": false,
    "created_at": "2024-10-30T15:56:01.966Z",
    "note": "",
    "url": "http://pasture-one-actor/actor",
    "avatar": "http://hollo/image/avatars/original/missing.png",
    "avatar_static": "http://hollo/image/avatars/original/missing.png",
    "header": "http://hollo/image/headers/original/missing.png",
    "header_static": "http://hollo/image/headers/original/missing.png",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 0,
    "moved": null,
    "last_status_at": null,
    "emojis": [],
    "fields": []
  },
  "media_attachments": [],
  "mentions": [],
  "tags": [],
  "card": null,
  "emojis": [],
  "emoji_reactions": [],
  "poll": null,
  "filtered": null
}
sharkey
{
  "id": "9zzm8fr4te6p000s",
  "uri": "http://pasture-one-actor/actor/6FvE4D0tCoY",
  "url": "http://pasture-one-actor/actor/6FvE4D0tCoY",
  "account": {
    "id": "9zzm83xete6p0002",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "fqn": "actor@pasture-one-actor",
    "display_name": "Test Actor",
    "locked": false,
    "created_at": "2024-10-30T15:48:24.674Z",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 21,
    "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-10-30T15:48:40.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,
  "edited_at": null
}

Example 3

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://hollo/@john"
  ],
  "id": "http://pasture-one-actor/actor/LcSZ5OGQ1dE",
  "published": "2024-10-30T15:56:18Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "Public",
      "http://hollo/@john"
    ],
    "id": "http://pasture-one-actor/actor/XwdnQTM7KZE",
    "published": "2024-10-30T15:56:18Z",
    "content": "Public",
    "tag": [
      {
        "type": "Mention",
        "href": "http://gotosocial/users/cookie"
      }
    ]
  }
}

no result

sharkey
{
  "id": "9zzm8giwte6p000t",
  "uri": "http://pasture-one-actor/actor/sx848lg31bw",
  "url": "http://pasture-one-actor/actor/sx848lg31bw",
  "account": {
    "id": "9zzm83xete6p0002",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "fqn": "actor@pasture-one-actor",
    "display_name": "Test Actor",
    "locked": false,
    "created_at": "2024-10-30T15:48:24.674Z",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 22,
    "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-10-30T15:48:41.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,
  "edited_at": null
}