lumenwrites / fictionhub_old

The perfect place to publish, discover and discuss awesome fiction
http://fictionhub.io
18 stars 4 forks source link

Voting for stories. Stores by user so you can't just spam post requests to inflate it. #5

Closed tsheinen closed 9 years ago

tsheinen commented 9 years ago

POST "voter" and "amount" to /story/name/vote to do so. At the moment, it returns the aggregate score. I was going to have it verify the username existed, but I couldn't figure it out. I do have some concerns about scalability, but this is a prototype.

tsheinen commented 9 years ago

amount should be either 1 or -1

lumenwrites commented 9 years ago

Thank you very much for your contribution! I'm sorry that I'm not merging this request, I'm implementing voting functionality a bit differently now. Besides I've just done a lot of refactoring, and I'm still thinking about the right way to organize the application. But it it still very valuable, and I'm very grateful for you help.