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://mitra/users/admin",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/EQekRRddAfY",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mitra/users/admin"
],
"id": "http://pasture-one-actor/actor/fFEhQL45hFI",
"published": "2024-03-31T14:28:32Z",
"content": "https://www.w3.org/ns/activitystreams#Public"
}
}
bonfire
{
"canonicalUri": "http://pasture-one-actor/actor/igqa7_orFto",
"date": "2024-03-30T18:01:07.000Z",
"id": "01HT88BENR92TVDW3QG6RZY4F9",
"objectPostContent": {
"htmlBody": "https://www.w3.org/ns/activitystreams#Public"
},
"verb": {
"verbDisplay": "created"
}
}
mastodon
{
"id": "112186088130065694",
"created_at": "2024-03-30T18:37:34.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/tvwBn0avS8Y",
"url": "http://pasture-one-actor/actor/tvwBn0avS8Y",
"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": "112186086980725689",
"username": "actor",
"acct": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": false,
"bot": false,
"discoverable": false,
"group": false,
"created_at": "2024-03-30T00: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-30",
"emojis": [],
"fields": []
},
"media_attachments": [],
"mentions": [],
"tags": [],
"emojis": [],
"card": null,
"poll": null
}
mitra
{
"id": "018e94e9-9d04-76fe-2ce4-0477770c392a",
"uri": "http://pasture-one-actor/actor/fFEhQL45hFI",
"url": null,
"created_at": "2024-03-31T14:28:32Z",
"edited_at": null,
"account": {
"id": "018e94e6-9c70-19ea-abbc-25876ee1f927",
"username": "actor",
"acct": "actor@pasture-one-actor",
"actor_id": "http://pasture-one-actor/actor",
"url": "http://pasture-one-actor/actor",
"display_name": "Test Actor",
"created_at": "2024-03-31T14:25:25.104753Z",
"note": "",
"avatar": null,
"header": null,
"locked": false,
"mention_policy": "none",
"bot": false,
"identity_proofs": [],
"payment_options": [],
"fields": [],
"emojis": [],
"followers_count": 0,
"following_count": 0,
"subscribers_count": 0,
"statuses_count": 20,
"source": null,
"role": null,
"authentication_methods": null,
"client_config": null
},
"content": "https://www.w3.org/ns/activitystreams#Public",
"in_reply_to_id": null,
"in_reply_to_account_id": null,
"reblog": null,
"visibility": "public",
"sensitive": false,
"spoiler_text": "",
"pinned": false,
"replies_count": 0,
"favourites_count": 0,
"reblogs_count": 0,
"media_attachments": [],
"mentions": [
{
"id": "018e94e5-7d86-cd07-c32b-eec115bb657e",
"username": "admin",
"acct": "admin",
"url": "http://mitra/users/admin"
}
],
"tags": [],
"emojis": [],
"favourited": false,
"reblogged": false,
"ipfs_cid": null,
"links": []
}
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://mitra/users/admin",
"as:Public"
],
"id": "http://pasture-one-actor/actor/VS5gR1-FITU",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"as:Public",
"http://mitra/users/admin"
],
"id": "http://pasture-one-actor/actor/6EySWp0fnyc",
"published": "2024-03-31T14:28:42Z",
"content": "as:Public"
}
}
bonfire
{
"canonicalUri": "http://pasture-one-actor/actor/h15EtTyMYEs",
"date": "2024-03-30T18:01:10.000Z",
"id": "01HT88BHKG6Q5TB6FHA95VGSBF",
"objectPostContent": {
"htmlBody": "as:Public"
},
"verb": {
"verbDisplay": "created"
}
}
mastodon
{
"id": "112186088201183530",
"created_at": "2024-03-30T18:37:35.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/Iu3j2nqVUwo",
"url": "http://pasture-one-actor/actor/Iu3j2nqVUwo",
"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": "112186086980725689",
"username": "actor",
"acct": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": false,
"bot": false,
"discoverable": false,
"group": false,
"created_at": "2024-03-30T00: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-30",
"emojis": [],
"fields": []
},
"media_attachments": [],
"mentions": [],
"tags": [],
"emojis": [],
"card": null,
"poll": null
}
mitra
{
"id": "018e94e9-c41e-dc5d-8ad8-e33b493e45d7",
"uri": "http://pasture-one-actor/actor/6EySWp0fnyc",
"url": null,
"created_at": "2024-03-31T14:28:42Z",
"edited_at": null,
"account": {
"id": "018e94e6-9c70-19ea-abbc-25876ee1f927",
"username": "actor",
"acct": "actor@pasture-one-actor",
"actor_id": "http://pasture-one-actor/actor",
"url": "http://pasture-one-actor/actor",
"display_name": "Test Actor",
"created_at": "2024-03-31T14:25:25.104753Z",
"note": "",
"avatar": null,
"header": null,
"locked": false,
"mention_policy": "none",
"bot": false,
"identity_proofs": [],
"payment_options": [],
"fields": [],
"emojis": [],
"followers_count": 0,
"following_count": 0,
"subscribers_count": 0,
"statuses_count": 21,
"source": null,
"role": null,
"authentication_methods": null,
"client_config": null
},
"content": "as:Public",
"in_reply_to_id": null,
"in_reply_to_account_id": null,
"reblog": null,
"visibility": "public",
"sensitive": false,
"spoiler_text": "",
"pinned": false,
"replies_count": 0,
"favourites_count": 0,
"reblogs_count": 0,
"media_attachments": [],
"mentions": [
{
"id": "018e94e5-7d86-cd07-c32b-eec115bb657e",
"username": "admin",
"acct": "admin",
"url": "http://mitra/users/admin"
}
],
"tags": [],
"emojis": [],
"favourited": false,
"reblogged": false,
"ipfs_cid": null,
"links": []
}
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://mitra/users/admin",
"Public"
],
"id": "http://pasture-one-actor/actor/-sBJAbDfJHk",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"Public",
"http://mitra/users/admin"
],
"id": "http://pasture-one-actor/actor/fG6tlVH8okY",
"published": "2024-03-31T14:28:52Z",
"content": "Public"
}
}
bonfire
{
"canonicalUri": "http://pasture-one-actor/actor/fPhvYw07Fm8",
"date": "2024-03-30T18:01:14.000Z",
"id": "01HT88BNGG1RTCAMJK6MCKY0ZB",
"objectPostContent": {
"htmlBody": "Public"
},
"verb": {
"verbDisplay": "created"
}
}
mastodon
{
"id": "112186088271974666",
"created_at": "2024-03-30T18:37:36.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/L39aQgTZD1M",
"url": "http://pasture-one-actor/actor/L39aQgTZD1M",
"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": "112186086980725689",
"username": "actor",
"acct": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": false,
"bot": false,
"discoverable": false,
"group": false,
"created_at": "2024-03-30T00: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-30",
"emojis": [],
"fields": []
},
"media_attachments": [],
"mentions": [],
"tags": [],
"emojis": [],
"card": null,
"poll": null
}
mitra
{
"id": "018e94e9-eb39-f383-df00-aa2a40216d9f",
"uri": "http://pasture-one-actor/actor/fG6tlVH8okY",
"url": null,
"created_at": "2024-03-31T14:28:52Z",
"edited_at": null,
"account": {
"id": "018e94e6-9c70-19ea-abbc-25876ee1f927",
"username": "actor",
"acct": "actor@pasture-one-actor",
"actor_id": "http://pasture-one-actor/actor",
"url": "http://pasture-one-actor/actor",
"display_name": "Test Actor",
"created_at": "2024-03-31T14:25:25.104753Z",
"note": "",
"avatar": null,
"header": null,
"locked": false,
"mention_policy": "none",
"bot": false,
"identity_proofs": [],
"payment_options": [],
"fields": [],
"emojis": [],
"followers_count": 0,
"following_count": 0,
"subscribers_count": 0,
"statuses_count": 22,
"source": null,
"role": null,
"authentication_methods": null,
"client_config": null
},
"content": "Public",
"in_reply_to_id": null,
"in_reply_to_account_id": null,
"reblog": null,
"visibility": "public",
"sensitive": false,
"spoiler_text": "",
"pinned": false,
"replies_count": 0,
"favourites_count": 0,
"reblogs_count": 0,
"media_attachments": [],
"mentions": [
{
"id": "018e94e5-7d86-cd07-c32b-eec115bb657e",
"username": "admin",
"acct": "admin",
"url": "http://mitra/users/admin"
}
],
"tags": [],
"emojis": [],
"favourited": false,
"reblogged": false,
"ipfs_cid": null,
"links": []
}