posts: fix newpool:<name> metatag.

This commit is contained in:
evazion
2020-02-23 02:44:42 -06:00
parent e47d0e0d05
commit cc9298cf46

View File

@@ -742,7 +742,7 @@ class Post < ApplicationRecord
when /^newpool:(.+)$/i
pool = Pool.find_by_name($1)
if pool.nil?
pool = Pool.create(name: $1, creator: CurrentUser.user, description: "This pool was automatically generated")
pool = Pool.create(name: $1, description: "This pool was automatically generated")
end
end
end