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": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/9zwignaxrm4s0001"
],
"id": "http://pasture-one-actor/actor/j7Qyj_WzJPg",
"published": "2024-10-28T11:41:12Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/9zwignaxrm4s0001"
],
"id": "http://pasture-one-actor/actor/boJf1vTJFnY",
"published": "2024-10-28T11:41:12Z",
"content": "https://www.w3.org/ns/activitystreams#Public"
}
}
sharkey
{
"id": "9zwiihmoszc6000r",
"uri": "http://pasture-one-actor/actor/boJf1vTJFnY",
"url": "http://pasture-one-actor/actor/boJf1vTJFnY",
"account": {
"id": "9zwii6soszc60002",
"username": "actor",
"acct": "actor@pasture-one-actor",
"fqn": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": false,
"created_at": "2024-10-28T11:40:57.960Z",
"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-28T11:41:12.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://sharkey/users/9zwignaxrm4s0001",
"as:Public"
],
"id": "http://pasture-one-actor/actor/YGdqOgVJz3M",
"published": "2024-10-28T11:41:13Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"as:Public",
"http://sharkey/users/9zwignaxrm4s0001"
],
"id": "http://pasture-one-actor/actor/CyAjwBYsM3g",
"published": "2024-10-28T11:41:13Z",
"content": "as:Public"
}
}
sharkey
{
"id": "9zwiiiegszc6000s",
"uri": "http://pasture-one-actor/actor/CyAjwBYsM3g",
"url": "http://pasture-one-actor/actor/CyAjwBYsM3g",
"account": {
"id": "9zwii6soszc60002",
"username": "actor",
"acct": "actor@pasture-one-actor",
"fqn": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": false,
"created_at": "2024-10-28T11:40:57.960Z",
"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-28T11:41:13.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": [
"http://sharkey/users/9zwignaxrm4s0001",
"Public"
],
"id": "http://pasture-one-actor/actor/7LVKYMromNU",
"published": "2024-10-28T11:41:14Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"Public",
"http://sharkey/users/9zwignaxrm4s0001"
],
"id": "http://pasture-one-actor/actor/j8iE61_xoNI",
"published": "2024-10-28T11:41:14Z",
"content": "Public"
}
}
sharkey
{
"id": "9zwiij68szc6000t",
"uri": "http://pasture-one-actor/actor/j8iE61_xoNI",
"url": "http://pasture-one-actor/actor/j8iE61_xoNI",
"account": {
"id": "9zwii6soszc60002",
"username": "actor",
"acct": "actor@pasture-one-actor",
"fqn": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": false,
"created_at": "2024-10-28T11:40:57.960Z",
"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-28T11:41:14.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
}