posts: fix newpool:<name> metatag.
This commit is contained in:
@@ -742,7 +742,7 @@ class Post < ApplicationRecord
|
|||||||
when /^newpool:(.+)$/i
|
when /^newpool:(.+)$/i
|
||||||
pool = Pool.find_by_name($1)
|
pool = Pool.find_by_name($1)
|
||||||
if pool.nil?
|
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
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user