3 Comments
Test reply again, again.. thinking PieFed assumes the order of values in ActivityPub `to` and `cc`...?
reply
Yep, gotcha!
reply
If anybody out there is reading...
Spotted this:
https://codeberg.org/rimu/pyfedi/src/branch/main/app/activitypub/routes.py#L435
First I sent this:
{
"@context": "https://www.w3.org/ns/activitystreams",
"id": "https://apubtest2.srcbeat.com/otl/outbox/1710885632-create",
"type": "Create",
"actor": "https://apubtest2.srcbeat.com/otl/actor.json",
"to": [
"https://endlesstalk.org/u/freamon",
"https://www.w3.org/ns/activitystreams#Public"
],
"cc": [
"https://piefed.social/c/playground"
],
"published": "2024-03-20T09:00:32+11:00",
"source": {},
"object": {
"@context": "https://www.w3.org/ns/activitystreams",
"id": "https://apubtest2.srcbeat.com/otl/outbox/1710885632",
"type": "Note",
"name": "Re: New Post 2024-03-17 10:34",
"to": [
"https://endlesstalk.org/u/freamon",
"https://www.w3.org/ns/activitystreams#Public"
],
"cc": [
"https://piefed.social/c/playground"
],
"inReplyTo": "https://endlesstalk.org/post/27790566",
"published": "2024-03-20T09:00:32+11:00",
"attributedTo": "https://apubtest2.srcbeat.com/otl/actor.json",
"content": "Test reply",
"mediaType": "text/markdown",
"source": {},
"tag": [
{
"@context": "",
"type": "Mention",
"name": "@freamon@endlesstalk.org",
"source": {},
"href": "https://endlesstalk.org/u/freamon"
}
]
}
}
Then read the code. If I understand correctly, PieFed assumes
either:
- the first value is the special ActivityPub [Public Collection], or
- there's a Group recipient PieFed can deliver to locally (i.e.
a PieFed community).
To verify I sent this:
{
"@context": "https://www.w3.org/ns/activitystreams",
"id": "https://apubtest2.srcbeat.com/otl/outbox/1710888502-create",
"type": "Create",
"actor": "https://apubtest2.srcbeat.com/otl/actor.json",
"to": [
"https://www.w3.org/ns/activitystreams#Public"
],
"cc": [
"https://piefed.social/c/playground",
"https://endlesstalk.org/u/freamon"
],
"published": "2024-03-20T09:48:22+11:00",
"source": {},
"object": {
"@context": "https://www.w3.org/ns/activitystreams",
"id": "https://apubtest2.srcbeat.com/otl/outbox/1710888502",
"type": "Note",
"name": "Re: New Post 2024-03-17 10:34",
"to": [
"https://www.w3.org/ns/activitystreams#Public"
],
"cc": [
"https://piefed.social/c/playground",
"https://endlesstalk.org/u/freamon"
],
"inReplyTo": "https://endlesstalk.org/post/27790566",
"published": "2024-03-20T09:48:22+11:00",
"attributedTo": "https://apubtest2.srcbeat.com/otl/actor.json",
"content": "Test reply again, again.. thinking PieFed assumes the order of values in ActivityPub `to` and `cc`...?",
"mediaType": "text/markdown",
"source": {}
}
}
That delivered ok. https://piefed.social/comment/721248
[Public Collection]: https://www.w3.org/TR/activitypub/#public-addressing
reply