Idle accounts
An open instance attracts sign-ups that exist only for their profile. They fill in a product name, a sales pitch and a website, and never do anything else. Some also create a repository whose only file is the generated README, with the pitch as its text.
A captcha and a confirmed email address do not stop them, because a person makes them. Arbinel can keep these accounts out of sight until they do something, list the ones that publish something for a site administrator to review, and email the administrators when there are new ones. Arbinel never deletes an account on its own, because a personal website or a short bio is also what many real people add. Both settings are off by default.
Idle accounts
Section titled “Idle accounts”An account is idle when it has none of these:
- A package that it owns.
- A repository that it owns and that has content, see Placeholder repositories.
- A commit, tag or release that it pushed or published to any repository, including one that someone else owns.
- An issue or pull request that it opened.
- A comment or review that it wrote.
- Membership in an organization, or collaborator access to a repository.
- An SSH key, an access token, an OAuth2 application or an OAuth2 grant.
Site administrators, organizations and bots are never idle. An account stops being idle with its first contribution, and nobody has to approve it. Stars, follows and watches do not count, because they need no effort to fake.
Placeholder repositories
Section titled “Placeholder repositories”A repository makes its owner active only once it has content of its own. It has content when someone pushed a commit or tag to it, committed in the web editor, or published a release. Forks, mirrors and migrated repositories always count.
A repository created with only the generated README, or left empty, is a placeholder and does not count. A real user’s account stops being idle with the first commit to such a repository.
Hide idle accounts
Section titled “Hide idle accounts”With [service] HIDE_IDLE_ACCOUNTS = true, Arbinel hides idle accounts from other people:
- Explore > Users and the users sitemap leave them out.
- Explore > Repositories and the repositories sitemap leave out their repositories.
- Their profile shows only the user name, the avatar and the date the account joined. Arbinel hides the full name, bio, website, location, pronouns, social accounts and OpenID URIs.
- Their profile lists none of their repositories, and shows neither a profile README nor pinned repositories.
- Arbinel sends the profile and the pages of their repositories with an
X-Robots-Tag: noindexheader, so search engines do not index them.
The account’s owner and site administrators still see the full profile. The owner gets no notice, so a real user sees nothing unusual. The API is unchanged.
Review idle accounts
Section titled “Review idle accounts”In Site Administration > User Accounts, open the status filter and choose Idle, with a website, bio or placeholder repository. The list then shows the idle accounts that publish something:
- A website on the profile.
- A bio on the profile.
- A placeholder repository.
Profile spam does one of these, but so do many real people who only added a personal site or a short bio. For each account, the list shows its email address, website, bio, number of repositories, whether it uses two-factor authentication, and when it signed up and last signed in. An idle account that publishes none of these is not listed, such as someone who signed up only to star, watch or follow repositories. It is still hidden while it is idle.
To delete accounts, select them and choose Delete selected, then confirm. Arbinel deletes them with their placeholder repositories. Their owners can sign up again.
Arbinel checks each account again right before it deletes it. It keeps an account that became active, stopped publishing something, or could not be deleted, such as one with a paid add-on, and deletes the others. A message names the accounts it kept. Arbinel records every deletion in Site Administration > System Notices, with the administrator who deleted them and the name, ID and email address of each account.
Report idle accounts
Section titled “Report idle accounts”The report_idle_accounts cron task emails every site administrator about idle accounts that publish something and became due since its last run.
An account becomes due once it was created more than OLDER_THAN ago and has not signed in for as long.
OLDER_THAN defaults to 720h, which is 30 days, and the task runs @every 24h.
The email lists the first 10 accounts with their website and bio, says how many more there are, and links to the filtered list. Arbinel sends nothing when no account became due, and never deletes an account from this task. Its first run reports every account that is already due.
The list in User Accounts shows idle accounts of any age, so you can delete spam before the report includes it.