diff options
-rw-r--r-- | askbot/templates/email/macros.html | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/askbot/templates/email/macros.html b/askbot/templates/email/macros.html index 3b190e9f..78816c4f 100644 --- a/askbot/templates/email/macros.html +++ b/askbot/templates/email/macros.html @@ -7,7 +7,11 @@ %} {% spaceless %} {{ start_quote(quote_level) }} - {% set author = post.author.username|escape %} + {% if post.is_anonymous %} + {% set author = settings.NAME_OF_ANONYMOUS_USER %} + {% else %} + {% set author = post.author.username|escape %} + {% endif %} {% if post.post_type == 'question' %} {% if quote_level > 0 %} <p style="font-size:10px; font-weight: bold;"> |