Names that aren't allowed
No swear words or slurs in a username or name, checked as you type; a name chosen before that has one gets a screen to change it.
Since build 21
Durpin doesn't allow swear words or slurs in a username or a display name, in English or in romanized Nepali and Hindi. The list itself isn't shown here.
As you type
- When you join, in Edit profile and in Your username, a name Durpin doesn't allow says "That name isn't allowed. Try another one." under the field as soon as you type it, and Continue or Save stays off until it's changed.
- Spelling it another way doesn't get past it. Capitals, accents, numbers or symbols in place of letters (a 0 for an o, a $ for an s), letters typed more than once, and dots or spaces between the letters are all read as the word.
- A word inside a name is fine. A name only counts when the word is the whole word, so names that happen to hold one (Cassandra, Dickens, Shital, Sabit Chaudhary as a username) go through. A few very strong words count inside a word too, and across the gaps in a name, since a username has no spaces; none of those is part of a real name.
- A name with an initial is fine. A name and one letter, either way round (Anu S, K Amina, or anu_s as a username), is read as a name and a letter. A word on the list with a letter next to it is still that word.
- A few words on the list are also real first names or surnames. A name you type can't have one of those either: the same line shows.
- Numbers stay numbers when they hold a 2, 6, 8 or 9, so a username such as bishal2455 is fine.
If your name already has one
Names chosen before this came in are checked too. If yours has a word Durpin doesn't allow, Durpin shows Your name needs a change when you open it, and nothing else until you fix it:
- It names what to change: your name, your username, or both.
- Type a new one, with the same check as you type, and tap Save. A name can be left empty: friends then see your username.
- A username changed here doesn't wait for the 30 days since your last change, and the old one isn't kept for you. The next change waits 30 days from this one.
- If Durpin can't reach the server right after a save, it says "Saved, but Durpin couldn't check it just now. Tap Save to try again." Your new name is saved; Save sends it again and asks, and lets you in once the answer comes back. Until then the username you saved is yours: a different one typed now waits the usual 30 days.
- Sign out is there too. Back on Android leaves the app.
It checks again each time you come back to Durpin, so a name fixed on another phone lets this one in. If a check doesn't get through (no signal, or the server is busy), Durpin tries a few more times over the next minute by itself, and again the next time you come back. Until a check gets through, nothing changes: you're neither stopped nor let past. Durpin doesn't keep the answer on the phone, so opening it with no signal never stops you over a name you've already fixed.
If your account is set to be deleted, Durpin asks whether you want to keep it first, and about the name after that, whichever screen you opened Durpin on.
If you kept the account on another phone, this one doesn't ask again. A phone that last saw the account as set to be deleted checks with the server before its first screen when it opens from closed, and stays on the loading screen meanwhile, for about 3 seconds longer than usual at most. If the server says the account was kept, Durpin opens as usual. With no signal, or no answer in that time, the question shows, and goes by itself if the answer then says the account was kept. While the question is open, Durpin checks again each time you come back to it from another app or the home screen, so it goes within a few seconds of your return.
If it's a word that's also a real name
If your name was there before this came in and the only word it has from the list is one that is also a real first name or surname, nothing stops you: there's no change screen, and you keep using Durpin with that name. Bishal may ask you about it. A change to another name is still checked as you type.
A username is different: a username with one of those words still needs a change, on the same screen.
Older versions
Versions before build 21 don't show the change screen, so someone with a name that isn't allowed keeps using them as before. They still can't pick a new one that isn't allowed: the username check says "Taken", and a name says "Couldn't save your profile" (or "Couldn't finish" when joining) with "That name isn't allowed. Try another one." On an older version, a bio or photo change still saves: only a new name is checked.
For Bishal
Who has a name stored before the filter whose only listed word is also a real name. On the NAS, from Durpin's docker folder, this line (it only reads). The password goes from .env to docker in its environment, never on a command line, where every account on the NAS could read it:
PGPASSWORD="$(grep '^POSTGRES_PASSWORD=' .env | tail -1 | cut -d= -f2-)" docker exec -e PGPASSWORD durpin-db psql -U supabase_admin -h localhost -d postgres -c "select * from public.names_for_review();"
Each row is one name: the person's id, username and display name, which field it is, the word, and change_screen, which is true for a username (they're asked to change it anyway) and false for a display name (they aren't). Only the server's own roles can run it; the app can't.
Then either tell the person, or let the name be. To let it be, add it to ALLOWED_NAMES in lib/nameFilter.ts as the whole name in lowercase, accents taken off and one space between its words, and put the same lists in a new migration that redefines public.name_tier: node scripts/name-lists-sql.mjs prints the lines, and npm test fails until the two match. Once that migration is deployed the name is never refused or listed again, and a username with it leaves the change screen. The app's own check while typing learns it in the next build.
The deploy notices of migrations 20240190 and 20240192 count these names (never which ones); 20240192's is the newer count, so a 0 there means there's nothing to run this for.