fixes #1730
This commit is contained in:
@@ -450,10 +450,12 @@ class Post < ActiveRecord::Base
|
|||||||
end
|
end
|
||||||
|
|
||||||
when /^rating:([qse])/i
|
when /^rating:([qse])/i
|
||||||
|
unless is_rating_locked?
|
||||||
self.rating = $1.downcase
|
self.rating = $1.downcase
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
def has_tag?(tag)
|
def has_tag?(tag)
|
||||||
tag_string =~ /(?:^| )#{tag}(?:$| )/
|
tag_string =~ /(?:^| )#{tag}(?:$| )/
|
||||||
|
|||||||
Reference in New Issue
Block a user