diff --git a/templates/post_reply.html b/templates/post_reply.html
index 28cbd7f8..a1feb005 100644
--- a/templates/post_reply.html
+++ b/templates/post_reply.html
@@ -31,7 +31,7 @@
{% if config.display_flags and post.modifiers.flag %}
+ {% if post.modifiers['flag alt'] %}alt="{{ post.modifiers['flag alt'] | e('html_attr') }}" title="{{ post.modifiers['flag alt'] | e('html_attr') }}"{% endif %}>
{% endif %}
diff --git a/templates/post_thread.html b/templates/post_thread.html
index 0ee3f6fa..5910bb74 100644
--- a/templates/post_thread.html
+++ b/templates/post_thread.html
@@ -85,7 +85,7 @@
{% if config.display_flags and post.modifiers.flag %}
+ {% if post.modifiers['flag alt'] %}alt="{{ post.modifiers['flag alt'] | e('html_attr') }}" title="{{ post.modifiers['flag alt'] | e('html_attr') }}"{% endif %}>
{% endif %}