DEV: Added wrapper to signal that NewPostManager#add_plugin_payload_attribute is part of the public API

DEV: Added wrapper to signal that NewPostManager#add_plugin_payload_attribute is part of the public API

diff --git a/lib/plugin/instance.rb b/lib/plugin/instance.rb
index 94037ff..7fe0198 100644
--- a/lib/plugin/instance.rb
+++ b/lib/plugin/instance.rb
@@ -730,6 +730,12 @@ class Plugin::Instance
     end
   end
 
+  def allow_new_queued_post_payload_attribute(attribute_name)
+    reloadable_patch do
+      NewPostManager.add_plugin_payload_attribute(attribute_name)
+    end
+  end
+
   private
 
   def write_asset(path, contents)
diff --git a/plugins/poll/plugin.rb b/plugins/poll/plugin.rb
index 29c365a..731a4c1 100644
--- a/plugins/poll/plugin.rb
+++ b/plugins/poll/plugin.rb
@@ -402,7 +402,7 @@ after_initialize do
     true
   end
 
-  NewPostManager.add_plugin_payload_attribute("is_poll")
+  allow_new_queued_post_payload_attribute("is_poll")
 
   NewPostManager.add_handler(1) do |manager|
     post = Post.new(raw: manager.args[:raw])

GitHub sha: 1e899393