mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 14:07:30 +08:00
FEATURE: New 'Reviewable' model to make reviewable items generic
Includes support for flags, reviewable users and queued posts, with REST API backwards compatibility. Co-Authored-By: romanrizzi <romanalejandro@gmail.com> Co-Authored-By: jjaffeux <j.jaffeux@gmail.com>
This commit is contained in:
@ -419,7 +419,7 @@ after_initialize do
|
||||
end
|
||||
|
||||
on(:approved_post) do |queued_post, created_post|
|
||||
if queued_post.post_options["is_poll"]
|
||||
if queued_post.payload["is_poll"]
|
||||
created_post.validate_polls(true)
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user