Durpin

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

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 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.