Commit efe6e7c8 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Mark modearator comments automatically as read.

parent 3658cdb3
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -56,8 +56,15 @@ Request.prototype = {
        };

        this.db.comments().add(comment, function(err, comment_id) {
            if (this.isModerator()) {
                this.markRead(comment_id, function() {
                    callback(comment_id);
                });
            }
            else {
                callback(comment_id);
            }
        }.bind(this));
    },

    setDeleted: function(comment_id, deleted, callback) {