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

This commit is contained in:
Joffrey JAFFEUX 2020-09-04 19:08:07 +02:00 committed by GitHub
parent 34c2dfccb7
commit c5b8a47901
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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?