From c829b78c257dd3b2437e22388933e6f6b08803e2 Mon Sep 17 00:00:00 2001 From: Toks Date: Thu, 8 Aug 2013 15:44:46 -0400 Subject: [PATCH] fixes #1377 --- app/models/post.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/models/post.rb b/app/models/post.rb index 133a3b0e8..650299a07 100644 --- a/app/models/post.rb +++ b/app/models/post.rb @@ -397,7 +397,7 @@ class Post < ActiveRecord::Base def filter_metatags(tags) @pre_metatags, tags = tags.partition {|x| x =~ /\A(?:rating|parent):/i} - @post_metatags, tags = tags.partition {|x| x =~ /\A(?:-pool|pool|fav):/i} + @post_metatags, tags = tags.partition {|x| x =~ /\A(?:-pool|pool|newpool|fav):/i} apply_pre_metatags return tags end @@ -420,6 +420,10 @@ class Post < ActiveRecord::Base add_pool!(pool) if pool when /^pool:(.+)$/i + pool = Pool.find_by_name($1) + add_pool!(pool) if pool + + when /^newpool:(.+)$/i pool = Pool.find_by_name($1) if pool.nil? pool = Pool.create(:name => $1, :description => "This pool was automatically generated")