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/wiqu_Xus6z4",
"published": "2024-10-30T15:07:00Z",
"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/rKeIMpNUssY",
"published": "2024-10-30T15:07:00Z",
"content": "https://www.w3.org/ns/activitystreams#Public"
}
}
mitra
{
"id": "0192ddf7-3e66-a5f7-67b9-fc48bc068597",
"uri": "http://pasture-one-actor/actor/rKeIMpNUssY",
"url": "http://pasture-one-actor/actor/rKeIMpNUssY",
"created_at": "2024-10-30T15:07:00Z",
"edited_at": null,
"account": {
"id": "0192ddf6-cc40-e273-81c4-6cf48d1cf147",
"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-10-30T15:06:31.872160Z",
"note": "",
"avatar": "http://mitra/api/v1/accounts/identicon?input=http://pasture-one-actor/actor",
"header": "http://mitra/api/v1/accounts/identicon",
"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": "0192ddf5-ae1f-1a8a-c4eb-475935f9c75b",
"username": "admin",
"acct": "admin",
"url": "http://mitra/users/admin"
}
],
"tags": [],
"emojis": [],
"favourited": false,
"reblogged": false,
"bookmarked": false,
"pleroma": {
"emoji_reactions": [],
"in_reply_to_account_acct": null,
"parent_visible": true,
"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": [
"http://mitra/users/admin",
"as:Public"
],
"id": "http://pasture-one-actor/actor/ywksJe-cJX4",
"published": "2024-10-30T15:07:01Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"as:Public",
"http://mitra/users/admin"
],
"id": "http://pasture-one-actor/actor/pPByvMin91M",
"published": "2024-10-30T15:07:01Z",
"content": "as:Public"
}
}
mitra
{
"id": "0192ddf7-443a-34d3-a3af-33609c9ab8f7",
"uri": "http://pasture-one-actor/actor/pPByvMin91M",
"url": "http://pasture-one-actor/actor/pPByvMin91M",
"created_at": "2024-10-30T15:07:01Z",
"edited_at": null,
"account": {
"id": "0192ddf6-cc40-e273-81c4-6cf48d1cf147",
"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-10-30T15:06:31.872160Z",
"note": "",
"avatar": "http://mitra/api/v1/accounts/identicon?input=http://pasture-one-actor/actor",
"header": "http://mitra/api/v1/accounts/identicon",
"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": "0192ddf5-ae1f-1a8a-c4eb-475935f9c75b",
"username": "admin",
"acct": "admin",
"url": "http://mitra/users/admin"
}
],
"tags": [],
"emojis": [],
"favourited": false,
"reblogged": false,
"bookmarked": false,
"pleroma": {
"emoji_reactions": [],
"in_reply_to_account_acct": null,
"parent_visible": true,
"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/S-2ONEjyack",
"published": "2024-10-30T15:07:03Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"Public",
"http://mitra/users/admin"
],
"id": "http://pasture-one-actor/actor/RkAcy1kRJy8",
"published": "2024-10-30T15:07:03Z",
"content": "Public"
}
}
mitra
{
"id": "0192ddf7-4a1f-ada9-d7c0-0123ab776c6e",
"uri": "http://pasture-one-actor/actor/RkAcy1kRJy8",
"url": "http://pasture-one-actor/actor/RkAcy1kRJy8",
"created_at": "2024-10-30T15:07:03Z",
"edited_at": null,
"account": {
"id": "0192ddf6-cc40-e273-81c4-6cf48d1cf147",
"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-10-30T15:06:31.872160Z",
"note": "",
"avatar": "http://mitra/api/v1/accounts/identicon?input=http://pasture-one-actor/actor",
"header": "http://mitra/api/v1/accounts/identicon",
"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": "0192ddf5-ae1f-1a8a-c4eb-475935f9c75b",
"username": "admin",
"acct": "admin",
"url": "http://mitra/users/admin"
}
],
"tags": [],
"emojis": [],
"favourited": false,
"reblogged": false,
"bookmarked": false,
"pleroma": {
"emoji_reactions": [],
"in_reply_to_account_acct": null,
"parent_visible": true,
"quote": null,
"quote_visible": false
},
"ipfs_cid": null,
"links": []
}