app/models/post/tag_methods.rb
# Commit metatags; this is done before save, so any changes are stored normally.
Commit metatags; this is done before save, so any changes are stored normally.
Commit metatags ; this is done before save so any changes are stored normally .
def commit_metatags
    return if new_tags.nil?
    transaction do
      metatags, self.new_tags = new_tags.partition { |x| x =~ /^(hold|unhold|show|hide|\+flag|source:.*)$/ }
      metatags.each do |metatag|
        case metatag
        when /^hold$/
          self.is_held = true
        when /^unhold$/
          self.is_held = false
        when /^show$/
          self.is_shown_in_index = true
        when /^hide$/
          self.is_shown_in_index = false
        when /^\+flag$/
          self.metatag_flagged = "moderator flagged"
        when /^source:(.*)/
          self.source = Regexp.last_match[1]
        end
      end
    end
  end
def commit_metatags return if new_tags . nil? transaction do metatags , self . new_tags = new_tags . partition { | x | x =~ / ^(hold|unhold|show|hide| \+ flag|source:.*)$ / } metatags . each do | metatag | case metatag when / ^hold$ / self . is_held = true when / ^unhold$ / self . is_held = false when / ^show$ / self . is_shown_in_index = true when / ^hide$ / self . is_shown_in_index = false when / ^ \+ flag$ / self . metatag_flagged = "moderator flagged" when / ^source:(.*) / self . source = Regexp . last_match [ 1 ] end end end end
Commit metatags; this is done before save, so any changes are stored normally.
Commit metatags ; this is done before save so any changes are stored normally .
# Permissions for this are checked on commit.