@mods Yes please.
Open a feature and allow us to make pull requests.
Principle developer here.
I can help for free, and can sign a NDA.
Not sure if you need/want it...
It is easy.
Like 5 minutes to implement easy.
SELECT count(users) from users;
SELECT count(users) from users u Where u.lastOnlineDate between now And 10 minutes.
Then just cache the two numbers and run that sequel every 5 minutes.
Then, make a rest endpoint.
@GetMappings("api/users/count") Public ResponseEntity<Long> getMaxSubscribers() { Return ResponseEntity.ok().body(entity from sql above).build() }
The add a counter in the UI. <row> <label> total subscribers </label>
<div> {totalSubscribers} </div> </row>
And finally add the api call to the client web side.
Const totalSubscribers = this.getMaxSubscribers();
That's it. 5 minutes max.
Prompt to login, if trying to upvote while logged out.
Add login indication if logged out.
Yup