Revision history  [back]

Is it possible to moderate user-content based on karma or other factors?

Is it/would it be possible to moderate user content based on a user's karma or other factors (such as age of user account, etc..) ?

As a short-term solution, would it be possible to tweak the Content Moderation code in an install so that a particular user group avoids moderation?

Edit: To be more clear, I would like to be able to enable the 'Content Moderation' flag, but only have it apply to a certain subgroup of users such as:

  • All users with karma < MIN_KARMA_TO_SKIP_MODERATION
  • All users who are not in a group flagged to SKIP_MODERATION
  • All users whose account is younger than MIN_AGE_TO_SKIP_MODERATION

I think that some of this mechanism could live in models/post.py:

def needs_moderation(self):
    """``True`` if post needs moderation"""
    if askbot_settings.ENABLE_CONTENT_MODERATION:
        #todo: needs a lot of details
        if self.author.is_administrator_or_moderator():
            return False
        # Pseudocode here...
        if user.karma >= MIN_KARMA_TO_SKIP_MODERATION ||
           user.group_has_flag_enabled(SKIP_MODERATION) ||
           user.age >= MIN_AGE_TO_SKIP_MODERATION
            return False

Is it possible to moderate user-content based on karma or other factors?

Is it/would it be possible to moderate user content based on a user's karma or other factors (such as age of user account, etc..) ?

As a short-term solution, would it be possible to tweak the Content Moderation code in an install so that a particular user group avoids moderation?

Edit: To be more clear, I would like to be able to enable the 'Content Moderation' flag, but only have it apply to a certain subgroup of users such as:

  • All users with karma < MIN_KARMA_TO_SKIP_MODERATION
  • All users who are not in a group flagged to SKIP_MODERATION
  • All users whose account is younger older than MIN_AGE_TO_SKIP_MODERATION

I think that some of this mechanism could live in models/post.py:

def needs_moderation(self):
    """``True`` if post needs moderation"""
    if askbot_settings.ENABLE_CONTENT_MODERATION:
        #todo: needs a lot of details
        if self.author.is_administrator_or_moderator():
            return False
        # Pseudocode here...
        if user.karma >= MIN_KARMA_TO_SKIP_MODERATION ||
           user.group_has_flag_enabled(SKIP_MODERATION) ||
           user.age >= MIN_AGE_TO_SKIP_MODERATION
            return False

Is it possible to moderate user-content based on karma or other factors?

Is it/would it be possible to moderate user content based on a user's karma or other factors (such as age of user account, etc..) ?

As a short-term solution, would it be possible to tweak the Content Moderation code in an install so that a particular user group avoids moderation?

Edit: To be more clear, I would like to be able to enable the 'Content Moderation' flag, but only have it apply to a certain subgroup of users such as:

  • All users with karma < MIN_KARMA_TO_SKIP_MODERATION
  • All users who are not in a group flagged to SKIP_MODERATION
  • All users whose account is older than MIN_AGE_TO_SKIP_MODERATION

I think that some of this mechanism could live in models/post.py:

def needs_moderation(self):
    """``True`` if post needs moderation"""
    if askbot_settings.ENABLE_CONTENT_MODERATION:
        #todo: needs a lot of details
        if self.author.is_administrator_or_moderator():
            return False
        # Pseudocode here...
        if user.karma >= MIN_KARMA_TO_SKIP_MODERATION ||
           user.group_has_flag_enabled(SKIP_MODERATION) ||
           user.age >= MIN_AGE_TO_SKIP_MODERATION
            return False