DEV: Fix an `ActiveModel::Errors` deprecation

DEV: Fix an ActiveModel::Errors deprecation

The warning was:

DEPRECATION WARNING: Calling << to an ActiveModel::Errors message array in order to add an error is deprecated. Please call ActiveModel::Errors#add instead. (called from block (3 levels) in activate! at discourse/plugins/poll/plugin.rb:519)

diff --git a/plugins/poll/plugin.rb b/plugins/poll/plugin.rb
index 02224ae..816b06f 100644
--- a/plugins/poll/plugin.rb
+++ b/plugins/poll/plugin.rb
@@ -516,7 +516,7 @@ after_initialize do
       result =, false)
       post.errors.full_messages.each do |message|
-        result.errors[:base] << message
+        result.add_error(message)

GitHub sha: 0a259b94

This commit appears in #13302 which was approved by tgxworld. It was merged by tgxworld.