From 39197cb61f57c85298274646393dd9c26d57496d Mon Sep 17 00:00:00 2001 From: Toks Date: Sun, 15 Jun 2014 15:09:21 -0400 Subject: [PATCH] fixes #2195 --- app/models/upload.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/upload.rb b/app/models/upload.rb index 9d3ba51c6..9316ea142 100644 --- a/app/models/upload.rb +++ b/app/models/upload.rb @@ -64,8 +64,8 @@ class Upload < ActiveRecord::Base def rating_given if rating.present? return true - elsif tag_string =~ /(?:\s|^)rating:[qse](?:\s|$)/i - self.rating = "q" # Dummy just so the upload can be created. The metatag will set the correct rating on the post after upload. + elsif tag_string =~ /(?:\s|^)rating:([qse])/i + self.rating = $1.downcase return true else self.errors.add(:base, "Must specify a rating")