FIX: only send user suspension emails if email message provided (PR #12666)

This makes behavior consistent with documentation:

API:

Will send an email with this message when present

Web UI:

Optionally, provide more information about the suspension and it will be emailed to the user

GitHub

This pull request has been mentioned on Discourse Meta. There might be relevant details there:

The title of this pull request changed from “FIX: Only send user suspension emails if email message provided” to "FIX: only send user suspension emails if email message provided

    if message.present?

Thanks, this looks good!

resolved by DEV: user suspension use .present? by ryantm · Pull Request #12676 · discourse/discourse · GitHub