FIX: Show akismet state only if it exists (#36)

FIX: Show akismet state only if it exists (#36)

By default, it showed the “skipped” message which often produced more confusion.

diff --git a/assets/javascripts/discourse-akismet/connectors/flag-modal-bottom/akismet-status.hbs b/assets/javascripts/discourse-akismet/connectors/flag-modal-bottom/akismet-status.hbs
index e9aa88c..3386e99 100644
--- a/assets/javascripts/discourse-akismet/connectors/flag-modal-bottom/akismet-status.hbs
+++ b/assets/javascripts/discourse-akismet/connectors/flag-modal-bottom/akismet-status.hbs
@@ -1,3 +1,5 @@
-<div class="consent_banner alert alert-info">
-  <span>{{i18n (concat "akismet.post_state." (or post.akismet_state "skipped"))}}.</span>
-</div>
+{{#if post.akismet_state}}
+  <div class="consent_banner alert alert-info">
+    <span>{{i18n (concat "akismet.post_state." post.akismet_state)}}.</span>
+  </div>
+{{/if}}

GitHub sha: 221dd78634d226cfe896fed1b13f987c2d6d02b9

This commit appears in #36 which was approved by CvX. It was merged by udan11.