diff --git a/web/templates/status_emoji.hbs b/web/templates/status_emoji.hbs
index 7986c64967..f9558148d1 100644
--- a/web/templates/status_emoji.hbs
+++ b/web/templates/status_emoji.hbs
@@ -1,12 +1,12 @@
-{{#if .}}
-{{#if emoji_alt_code}}
+{{~#if . ~}}
+{{~#if emoji_alt_code ~}}
:{{emoji_name}}:
-{{else if still_url}}
+{{~else if still_url ~}}
-{{else if url}}
-{{!-- note that we have no still_url --}}
+{{~else if url ~}}
+{{~!-- note that we have no still_url --~}}
-{{else if emoji_name}}
+{{~else if emoji_name ~}}
-{{/if}}
-{{/if}}
+{{~/if ~}}
+{{~/if ~}}
diff --git a/web/templates/user_with_status_icon.hbs b/web/templates/user_with_status_icon.hbs
index 2d6d253170..0a5052bdde 100644
--- a/web/templates/user_with_status_icon.hbs
+++ b/web/templates/user_with_status_icon.hbs
@@ -1,4 +1,5 @@
{{name}}
- {{> status_emoji status_emoji_info}}
+ {{~> status_emoji status_emoji_info ~}}
+{{~!-- --~}}