I’ve got a data type called “Post” where users can create a Tweet-style post, however this could be done over and over without any limits.
To avoid potential spamming, I’m wondering how I could go about limiting posts per day or per hour?
I imagine on the User data type I could put a field called “Posts Today” as a number. When a post is created, we +1 to that data field so it increases every post, and I know how I could stop the workflow of the current users posts = 10 for example.
What I’m not sure on is how to reset that Posts Today back to 0 after a certain time has passed since the last post. Perhaps it could work if I reset all users Posts Today at 4AM each day?