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://gotosocial/users/cookie"
],
"id": "http://pasture-one-actor/actor/kQs-Y1YbzCQ",
"published": "2024-11-09T09:15:42Z",
"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/xDD53iu7I5Y",
"published": "2024-11-09T09:15:42Z",
"content": "https://www.w3.org/ns/activitystreams#Public",
"tag": [
{
"type": "Mention",
"href": "http://gotosocial/users/cookie"
}
]
}
}
gotosocial
{
"id": "01JC83ACHGZ8GXX32FF7PEBT0E",
"created_at": "2024-11-09T09:15:42.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/xDD53iu7I5Y",
"url": "http://pasture-one-actor/actor/xDD53iu7I5Y",
"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": "01JC83A13F929J8XW2MYDBXMSV",
"username": "actor",
"acct": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": true,
"discoverable": false,
"bot": false,
"created_at": "2024-11-09T09:15:30.307Z",
"note": "",
"url": "http://pasture-one-actor/actor",
"avatar": "http://gotosocial/assets/default_avatars/GoToSocial_icon1.png",
"avatar_static": "http://gotosocial/assets/default_avatars/GoToSocial_icon1.png",
"header": "http://gotosocial/assets/default_header.png",
"header_static": "http://gotosocial/assets/default_header.png",
"followers_count": 0,
"following_count": 0,
"statuses_count": 20,
"last_status_at": "2024-11-09T09:15:42.000Z",
"emojis": [],
"fields": []
},
"media_attachments": [],
"mentions": [
{
"id": "01YA635PPEP3NQK0WGMHHHW1NG",
"username": "cookie",
"url": "http://gotosocial/@cookie",
"acct": "cookie"
}
],
"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": [
"as:Public",
"http://gotosocial/users/cookie"
],
"id": "http://pasture-one-actor/actor/LiC_0zv-jwo",
"published": "2024-11-09T09:15:43Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"as:Public",
"http://gotosocial/users/cookie"
],
"id": "http://pasture-one-actor/actor/l5tga82fadA",
"published": "2024-11-09T09:15:43Z",
"content": "as:Public",
"tag": [
{
"type": "Mention",
"href": "http://gotosocial/users/cookie"
}
]
}
}
gotosocial
{
"id": "01JC83ADGRTF1HG0S1KPVATCEZ",
"created_at": "2024-11-09T09:15:43.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/l5tga82fadA",
"url": "http://pasture-one-actor/actor/l5tga82fadA",
"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": "01JC83A13F929J8XW2MYDBXMSV",
"username": "actor",
"acct": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": true,
"discoverable": false,
"bot": false,
"created_at": "2024-11-09T09:15:30.307Z",
"note": "",
"url": "http://pasture-one-actor/actor",
"avatar": "http://gotosocial/assets/default_avatars/GoToSocial_icon1.png",
"avatar_static": "http://gotosocial/assets/default_avatars/GoToSocial_icon1.png",
"header": "http://gotosocial/assets/default_header.png",
"header_static": "http://gotosocial/assets/default_header.png",
"followers_count": 0,
"following_count": 0,
"statuses_count": 21,
"last_status_at": "2024-11-09T09:15:43.000Z",
"emojis": [],
"fields": []
},
"media_attachments": [],
"mentions": [
{
"id": "01YA635PPEP3NQK0WGMHHHW1NG",
"username": "cookie",
"url": "http://gotosocial/@cookie",
"acct": "cookie"
}
],
"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://gotosocial/users/cookie"
],
"id": "http://pasture-one-actor/actor/hsw4axVjzwk",
"published": "2024-11-09T09:15:44Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"Public",
"http://gotosocial/users/cookie"
],
"id": "http://pasture-one-actor/actor/L92_LdA7zHA",
"published": "2024-11-09T09:15:44Z",
"content": "Public",
"tag": [
{
"type": "Mention",
"href": "http://gotosocial/users/cookie"
}
]
}
}
no result