posts: fix nil source tests; fix source:none metatag.

This commit is contained in:
evazion
2017-05-26 15:02:13 -05:00
parent 8f98e8e03c
commit a401b1f570
2 changed files with 5 additions and 5 deletions

View File

@@ -818,7 +818,7 @@ class Post < ActiveRecord::Base
end
when /^source:none$/i
self.source = nil
self.source = ""
when /^source:"(.*)"$/i
self.source = $1