Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Support 301 redirection for account migration #8465
Mastodon now has UX for account migration - hooray!
Now deep down at the HTTP level, there is an answer for this - the 301 redirect, which says 'go to this new URL instead, and remember that for next time you look (as opposed to the 302 redirect, which says 'go to this new URL for now, but check the original one again next time).
ActivityPub (the other way of doing this that Mastodon implements) doesn't specify migration directly, but does normatively reference HTTP so 301 should apply there too.
This has 2 components - serving 301s correctly, which presumably would use the
Lack of this is widely noted as a problem with federation, as people stumble onto an instance initially, and then are unsure how to move fully to another one e.g.
Forked from the old migration issue as that has got into the weeds of compromised instances. This is for the relatively simple 'I have moved from instance a to instance b' case that we have UI for.