fixes #2195
This commit is contained in:
@@ -64,8 +64,8 @@ class Upload < ActiveRecord::Base
|
|||||||
def rating_given
|
def rating_given
|
||||||
if rating.present?
|
if rating.present?
|
||||||
return true
|
return true
|
||||||
elsif tag_string =~ /(?:\s|^)rating:[qse](?:\s|$)/i
|
elsif tag_string =~ /(?:\s|^)rating:([qse])/i
|
||||||
self.rating = "q" # Dummy just so the upload can be created. The metatag will set the correct rating on the post after upload.
|
self.rating = $1.downcase
|
||||||
return true
|
return true
|
||||||
else
|
else
|
||||||
self.errors.add(:base, "Must specify a rating")
|
self.errors.add(:base, "Must specify a rating")
|
||||||
|
|||||||
Reference in New Issue
Block a user