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, and delete them if they never do. 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.
- 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.
Delete idle accounts
Section titled “Delete idle accounts”The delete_idle_accounts cron task deletes idle accounts that were created more than OLDER_THAN ago and have not signed in for as long.
OLDER_THAN defaults to 720h, which is 30 days, and the task runs @every 24h.
An idle account has nothing that other people see or depend on, so deleting it loses only the sign-up. The task also deletes its placeholder repositories. Its owner can sign up again. Arbinel checks each account again right before it deletes it, and skips one that became active or gained a paid add-on in the meantime.
The task also deletes idle accounts that existed before you turned it on, as soon as it first runs. On an instance with many old accounts, tell your users before you turn it on.