Mike Macgirvin (dev) on Nostr: Yeah, I know... We used to federate with peertube. Then a year or two ago it just ...
Yeah, I know... We used to federate with peertube. Then a year or two ago it just stopped. But you can load the activities in the search bar. Since nobody has complained, it never made it to the top of the work queue. Maybe this will help some other ActivityPub developer who has yet to encounter this platform-specific quirk.
So what happened?
Here's what happened:
// Now for the peertube lunacy
// Activity actor is viewing an object attributed to both an actor and a group. It was sent to the public inbox.
// actor (aka $observer_hash) in this case is a system actor whom we have no relationship with, so do a deep dive
// and find out if we have anybody on this site that has a relationship with either of the object->attributedTo entities.
// Then change the $observer_hash to that entity, so it won't get rejected by the receiver for being sent by an unknown actor.
// Don't know why they couldn't send the activity as one or both of these instead of the system actor. We don't really care
// what the system actor is viewing. We have no relationship with them at all.
// There is a flaw here if both attributedTo entities have followers on this site, but I think in practice
// they will normally follow the group and not the actor. Will deal with that paradox another day, probably by
// duplicating the payload and delivering to each.
So what happened?
Here's what happened:
// Now for the peertube lunacy
// Activity actor is viewing an object attributed to both an actor and a group. It was sent to the public inbox.
// actor (aka $observer_hash) in this case is a system actor whom we have no relationship with, so do a deep dive
// and find out if we have anybody on this site that has a relationship with either of the object->attributedTo entities.
// Then change the $observer_hash to that entity, so it won't get rejected by the receiver for being sent by an unknown actor.
// Don't know why they couldn't send the activity as one or both of these instead of the system actor. We don't really care
// what the system actor is viewing. We have no relationship with them at all.
// There is a flaw here if both attributedTo entities have followers on this site, but I think in practice
// they will normally follow the group and not the actor. Will deal with that paradox another day, probably by
// duplicating the payload and delivering to each.