-
-
Notifications
You must be signed in to change notification settings - Fork 365
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature] Add instance-stats-randomize
config option
#3718
Conversation
Hurray! |
Tools like FediDB rely on these statistics to make pretty graphs. If you want to hide the number of users, consider setting it to zero instead? |
I support this, providing faked statistics creates noise in the counting. Some promotion of the fediverse relies on those numbers. One can differ on opinion if that's a good thing, but intentionally corrupting data is never a great idea. Whilst I do support the idea, I think that providing 0 instead of random data is the better option, as it basically creates an opt-out situation |
Shouldn't the randomise number be between 0 and the actual number? for this to be acting as a bad actor? Between |
The number is limited between 0 and 1,000,000 (for users), and 0 and 10,000,000 (for statuses): Still ridiculous, but not enough to break json parsing etc. Re: other concerns about graphs etc: GtS has set a restrictive robots.txt file disallowing crawling of Will consider changing the setting so that admins can choose between serving actual numbers, serving 0, and serving random numbers though, that's a nice idea :) |
Anyway I'm going to lock this discussion since a now-closed PR is not really the place for it, but I'll open a new issue for the more granular setting :) EDIT: Here's the issue: #3723 |
Description
Adds a config option
instance-stats-randomize
to randomize user + post stats at/api/v1|v2/instance
and/nodeinfo/2.0
endpoints. Does not affect web views. Stats are re-randomized every hour thanks to the ttlcache.Checklist
Please put an x inside each checkbox to indicate that you've read and followed it:
[ ]
->[x]
If this is a documentation change, only the first checkbox must be filled (you can delete the others if you want).
go fmt ./...
andgolangci-lint run
.