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://mitra/users/admin"
],
"id": "http://pasture-one-actor/actor/YHMG3oRs0J8",
"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/zhpMspjof_g",
"published": "2024-08-03T15:42:42Z",
"content": "https://www.w3.org/ns/activitystreams#Public"
}
}
mitra
{
"id": "019118e8-4e95-dfb8-5326-48815922c031",
"uri": "http://pasture-one-actor/actor/zhpMspjof_g",
"url": null,
"created_at": "2024-08-03T15:42:42Z",
"edited_at": null,
"account": {
"id": "019118e7-ded9-7460-3eab-e229fb6ef7d0",
"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-08-03T15:42:14.744767Z",
"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": "019118e6-d690-71d3-ff0d-fec253e88c18",
"username": "admin",
"acct": "admin",
"url": "http://mitra/users/admin"
}
],
"tags": [],
"emojis": [],
"favourited": false,
"reblogged": false,
"pleroma": {
"emoji_reactions": [],
"in_reply_to_account_acct": null,
"quote": null,
"quote_visible": 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": [
"as:Public",
"http://mitra/users/admin"
],
"id": "http://pasture-one-actor/actor/mOm_R2V_kko",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"as:Public",
"http://mitra/users/admin"
],
"id": "http://pasture-one-actor/actor/FPHP32QFsMo",
"published": "2024-08-03T15:42:43Z",
"content": "as:Public"
}
}
mitra
{
"id": "019118e8-5474-3882-f795-6f060aec0831",
"uri": "http://pasture-one-actor/actor/FPHP32QFsMo",
"url": null,
"created_at": "2024-08-03T15:42:43Z",
"edited_at": null,
"account": {
"id": "019118e7-ded9-7460-3eab-e229fb6ef7d0",
"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-08-03T15:42:14.744767Z",
"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": "019118e6-d690-71d3-ff0d-fec253e88c18",
"username": "admin",
"acct": "admin",
"url": "http://mitra/users/admin"
}
],
"tags": [],
"emojis": [],
"favourited": false,
"reblogged": false,
"pleroma": {
"emoji_reactions": [],
"in_reply_to_account_acct": null,
"quote": null,
"quote_visible": 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": [
"Public",
"http://mitra/users/admin"
],
"id": "http://pasture-one-actor/actor/l2IIx8CCsKE",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"Public",
"http://mitra/users/admin"
],
"id": "http://pasture-one-actor/actor/91dXQHtAr-c",
"published": "2024-08-03T15:42:45Z",
"content": "Public"
}
}
mitra
{
"id": "019118e8-5a4e-e4ba-3f13-17852ffe77ac",
"uri": "http://pasture-one-actor/actor/91dXQHtAr-c",
"url": null,
"created_at": "2024-08-03T15:42:45Z",
"edited_at": null,
"account": {
"id": "019118e7-ded9-7460-3eab-e229fb6ef7d0",
"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-08-03T15:42:14.744767Z",
"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": "019118e6-d690-71d3-ff0d-fec253e88c18",
"username": "admin",
"acct": "admin",
"url": "http://mitra/users/admin"
}
],
"tags": [],
"emojis": [],
"favourited": false,
"reblogged": false,
"pleroma": {
"emoji_reactions": [],
"in_reply_to_account_acct": null,
"quote": null,
"quote_visible": false
},
"ipfs_cid": null,
"links": []
}