You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Back when Twitter existed, we had a bot that would do a couple of things:
For a 'vanity URL' https://twitter.com/DemocracyClub it would go and figure out the internal ID. e.g each Twitter user had an ID that related to their username. It would then store this ID on the PersonIdentifier's internal ID field
From time to time, we would run a management command that would look up each internal ID and see if the username was the same. If not, it would update the vanity URL to match the current username.
This was important because candidates change their name based on the elections they're contesting. We might get one account that's Bob4MP, that then changes to BobOfBristol and then becomes Bob4Mayor.
Apparently, Bluesky has more or less the same system of internal IDs and editable usernames, so we should teach CandiateBot how to follow this pattern.
In code, this looks like:
A helper that can look up users by username and user ID
A management command that processes PersonIdentifiers
Use the CandidateBot helper to make edits and store new versions.
Take a look at the Twitter command that did this for an idea of the pattern.
The text was updated successfully, but these errors were encountered:
Back when Twitter existed, we had a bot that would do a couple of things:
https://twitter.com/DemocracyClub
it would go and figure out the internal ID. e.g each Twitter user had an ID that related to their username. It would then store this ID on thePersonIdentifier
's internal ID fieldThis was important because candidates change their name based on the elections they're contesting. We might get one account that's
Bob4MP
, that then changes toBobOfBristol
and then becomesBob4Mayor
.Apparently, Bluesky has more or less the same system of internal IDs and editable usernames, so we should teach CandiateBot how to follow this pattern.
In code, this looks like:
CandidateBot
helper to make edits and store new versions.Take a look at the Twitter command that did this for an idea of the pattern.
The text was updated successfully, but these errors were encountered: