alexames/DeltaBot — pull request #50 by Pluckerpluck (2014-01-30 15:55:37+00:00)
Title: New/No OP Reply system (Pull this one, not the other one)

This pull request adds the No OP Replies system. Please test this thoroughly yourself as there's only so much testing a single person can do.

Basically all submissions are marked with the "new_flair" (if they are young enough). This MUST contain a css_class but the text can be blank if you wish it to be (so a hidden flair basically).

When an OP replies a hidden css_class is incremented. This allows the number of replies to be stored online without worrying about keeping count locally.

After a set amount of time the new tag is removed and the comment is check to see if it has more repelies than "replies_required". If so the new tag is removed (though the number of replies is still secretly counted in case you ever want to use this in another way). If not they are marked with the "no_op_replies_flair".

If marked as such, replying enough times will remove the flair.

As far as I can tell this should have 1 API call for the thread search and 2 API call per OP reply (necessary to get the submission + update the flair). So it shouldn't be too bad.