mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 08:23:34 +00:00
The deploy form asked the gateway whether a name was free, which is not the question it needed answered. A name somebody recovered in the migration is theirs, is already serving their site, and came back "taken" — so the button went dead with "That name is taken on shakespeare.wtf. Try another." about their own site. Every name anyone took back was in this state: a hundred and four of them for one person. The form had an escape hatch for exactly this, and it was too narrow. It knew a name was the user's own only if this project had deployed to it before, read out of the project's own deploy record. A name recovered through the migration dialog has no such record — the site was published, the hostname repointed, and nothing about it ever went through this form. So the question is asked properly instead. The anonymous ask happens first and is usually the end of it, because a name somebody is picking is usually free. Only a name that comes back taken is asked about again with a signature, which is the one branch where the distinction exists and the one place worth spending a remote signer on. A gateway too old to answer the second question leaves the first answer standing, which is the behavior as it was. The deploy itself never needed fixing: bindHostname asks for the host, is given it, finds it already points where it is about to point, and returns. The form was the only thing in the way. Also compares the saved name trimmed, since that is what gets deployed — a trailing space is not a different name, and typing one told people their own site was somebody else's.