LemmyNet / lemmy

🐀 A link aggregator and forum for the fediverse
https://join-lemmy.org
GNU Affero General Public License v3.0
13.17k stars 872 forks source link

Exclude banned users from total user count #3213

Open retiolus opened 1 year ago

retiolus commented 1 year ago

Requirements

Is your proposal related to a problem?

And I'm not talking about the usernames, just the number.

With the wave of spambots we've had in recent days, my server (for example) has 181 users, 156 of whom have been banned. This would make it possible to have a "real" view of the number of users on each instance (even if the number of active users is too).

Describe the solution you'd like.

Add a way of getting the number of banned users on a server through the API, currently only an administrator account can obtain all the banned usernames.

Describe alternatives you've considered.

Do not count banned users in the number of users on the server.

Additional context

No response

Nutomic commented 1 year ago

Seems like the better solution would be not to include banned accounts in the user count.

dessalines commented 11 months ago

This needs new triggers on the person -> site_aggregates and community_aggregates on the banned column.