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://mastodon/users/hippo",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture_one_actor/actor/Xpkn124fpKo",
"object": {
"type": "Note",
"attributedTo": "http://pasture_one_actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mastodon/users/hippo"
],
"id": "http://pasture_one_actor/actor/G3BWeBuaLsE",
"published": "2024-03-04T10:40:58Z",
"content": "https://www.w3.org/ns/activitystreams#Public"
}
}
mastodon
{
"id": "112036994026422132",
"created_at": "2024-03-04T10:40:58.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/G3BWeBuaLsE",
"url": "http://pasture_one_actor/actor/G3BWeBuaLsE",
"replies_count": 0,
"reblogs_count": 0,
"favourites_count": 0,
"edited_at": null,
"favourited": false,
"reblogged": false,
"muted": false,
"bookmarked": false,
"content": "https://www.w3.org/ns/activitystreams#Public",
"filtered": [],
"reblog": null,
"account": {
"id": "112036991182004023",
"username": "actor",
"acct": "actor@pasture_one_actor",
"display_name": "Test Actor",
"locked": false,
"bot": false,
"discoverable": false,
"group": false,
"created_at": "2024-03-04T00:00:00.000Z",
"note": "",
"url": "http://pasture_one_actor/actor",
"uri": "http://pasture_one_actor/actor",
"avatar": "http://mastodon/avatars/original/missing.png",
"avatar_static": "http://mastodon/avatars/original/missing.png",
"header": "http://mastodon/headers/original/missing.png",
"header_static": "http://mastodon/headers/original/missing.png",
"followers_count": 0,
"following_count": 0,
"statuses_count": 20,
"last_status_at": "2024-03-04",
"emojis": [],
"fields": []
},
"media_attachments": [],
"mentions": [],
"tags": [],
"emojis": [],
"card": null,
"poll": 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://mastodon/users/hippo",
"as:Public"
],
"id": "http://pasture_one_actor/actor/CrgWkj0cU_A",
"object": {
"type": "Note",
"attributedTo": "http://pasture_one_actor/actor",
"to": [
"as:Public",
"http://mastodon/users/hippo"
],
"id": "http://pasture_one_actor/actor/gQlcHnD-tUQ",
"published": "2024-03-04T10:41:01Z",
"content": "as:Public"
}
}
mastodon
{
"id": "112036994192978563",
"created_at": "2024-03-04T10:41:01.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/gQlcHnD-tUQ",
"url": "http://pasture_one_actor/actor/gQlcHnD-tUQ",
"replies_count": 0,
"reblogs_count": 0,
"favourites_count": 0,
"edited_at": null,
"favourited": false,
"reblogged": false,
"muted": false,
"bookmarked": false,
"content": "as:Public",
"filtered": [],
"reblog": null,
"account": {
"id": "112036991182004023",
"username": "actor",
"acct": "actor@pasture_one_actor",
"display_name": "Test Actor",
"locked": false,
"bot": false,
"discoverable": false,
"group": false,
"created_at": "2024-03-04T00:00:00.000Z",
"note": "",
"url": "http://pasture_one_actor/actor",
"uri": "http://pasture_one_actor/actor",
"avatar": "http://mastodon/avatars/original/missing.png",
"avatar_static": "http://mastodon/avatars/original/missing.png",
"header": "http://mastodon/headers/original/missing.png",
"header_static": "http://mastodon/headers/original/missing.png",
"followers_count": 0,
"following_count": 0,
"statuses_count": 21,
"last_status_at": "2024-03-04",
"emojis": [],
"fields": []
},
"media_attachments": [],
"mentions": [],
"tags": [],
"emojis": [],
"card": null,
"poll": 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://mastodon/users/hippo"
],
"id": "http://pasture_one_actor/actor/XbyiaZlyKbs",
"object": {
"type": "Note",
"attributedTo": "http://pasture_one_actor/actor",
"to": [
"Public",
"http://mastodon/users/hippo"
],
"id": "http://pasture_one_actor/actor/859aoj1iZoM",
"published": "2024-03-04T10:41:03Z",
"content": "Public"
}
}
mastodon
{
"id": "112036994340331629",
"created_at": "2024-03-04T10:41:03.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/859aoj1iZoM",
"url": "http://pasture_one_actor/actor/859aoj1iZoM",
"replies_count": 0,
"reblogs_count": 0,
"favourites_count": 0,
"edited_at": null,
"favourited": false,
"reblogged": false,
"muted": false,
"bookmarked": false,
"content": "Public",
"filtered": [],
"reblog": null,
"account": {
"id": "112036991182004023",
"username": "actor",
"acct": "actor@pasture_one_actor",
"display_name": "Test Actor",
"locked": false,
"bot": false,
"discoverable": false,
"group": false,
"created_at": "2024-03-04T00:00:00.000Z",
"note": "",
"url": "http://pasture_one_actor/actor",
"uri": "http://pasture_one_actor/actor",
"avatar": "http://mastodon/avatars/original/missing.png",
"avatar_static": "http://mastodon/avatars/original/missing.png",
"header": "http://mastodon/headers/original/missing.png",
"header_static": "http://mastodon/headers/original/missing.png",
"followers_count": 0,
"following_count": 0,
"statuses_count": 22,
"last_status_at": "2024-03-04",
"emojis": [],
"fields": []
},
"media_attachments": [],
"mentions": [],
"tags": [],
"emojis": [],
"card": null,
"poll": null
}