activitypub icon indicating copy to clipboard operation
activitypub copied to clipboard

How to implement "relocation" message?

Open annando opened this issue 7 years ago • 3 comments
trafficstars

I'm currently implementing AP for Friendica. Some things are unclear.

DFRN - or own protocol - does support a so called "relocation" message. This message is sent out when a user moves his/her account to another server. The message is sent from the new account. We keep the private/public keypair upon moving, so that our receivers can check that we are who we pretend to be. We don't send the old profile url. We only send the new profile data.

How could this be done with AP?

annando avatar Oct 06 '18 15:10 annando

In theory: there is a Move activity https://www.w3.org/TR/activitystreams-vocabulary/#dfn-move In practice: Mastodon uses a movedTo field extension https://github.com/tootsuite/mastodon/blob/78ed4ab75ff77d7cba60d478aa1f45d1c104785d/app/lib/activitypub/adapter.rb#L12 described here https://gist.github.com/nightpool/21fb737babb2f8714d911236e21b05e7

I'm not sure if there's a formal ActivityPub way of doing things yet that's different from what Mastodon does, but it's worth noting that movedTo has the expectation that you should NOT take any automatic actions, since the two Actors are still considered separate entities.

trwnh avatar Oct 06 '18 19:10 trwnh

At Friendica the behaviour is different. The old account isn't valid after this action.

annando avatar Oct 06 '18 19:10 annando

Related: https://github.com/swicg/general/issues/1

jaywink avatar Oct 07 '18 14:10 jaywink

This is an important issue for everyone using ActivityPub. It's important enough that we have a dedicated taskforce working on the topic right now. https://github.com/swicg/activitypub-data-portability is a good place to find important information about moving people between actor accounts. I'm going to close this issue in deference to that task force.

evanp avatar Jun 21 '24 16:06 evanp