FIX: ensures we don't attempt to concat an empty list (#10600)

FIX: ensures we don’t attempt to concat an empty list (#10600)

diff --git a/app/services/post_action_notifier.rb b/app/services/post_action_notifier.rb
index 3f562e3..056a58c 100644
--- a/app/services/post_action_notifier.rb
+++ b/app/services/post_action_notifier.rb
@@ -120,7 +120,7 @@ class PostActionNotifier
     end
 
     custom_post_revision_notifier_recipients.each do |block|
-      user_ids.concat(block.call(post_revision))
+      user_ids.concat(Array(block.call(post_revision)))
     end
 
     if user_ids.present?

GitHub sha: c5b8a479

1 Like

This commit appears in #10600 which was merged by jjaffeux.