summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2012-03-21 22:16:11 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2012-03-21 22:16:11 -0400
commit64da2ab817d115fd750e7657766d60f1f1589f4c (patch)
tree7b3307955495ce1b9d7db3e0649de9e1bcda01d6
parentc15b1aca84362a8d4e56dda0602dea8a3d886028 (diff)
downloadaskbot-64da2ab817d115fd750e7657766d60f1f1589f4c.tar.gz
askbot-64da2ab817d115fd750e7657766d60f1f1589f4c.tar.bz2
askbot-64da2ab817d115fd750e7657766d60f1f1589f4c.zip
fixed one more bug
-rw-r--r--askbot/utils/mail.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/askbot/utils/mail.py b/askbot/utils/mail.py
index db09ce6a..dbdb3f13 100644
--- a/askbot/utils/mail.py
+++ b/askbot/utils/mail.py
@@ -218,7 +218,7 @@ def process_attachment(attachment):
file_extension = os.path.splitext(attachment.name)[1]
#todo: this is a hack - use content type
if file_extension.lower() in ('.png', '.jpg', '.jpeg', '.gif'):
- return '!' + markdown_link
+ markdown_link = '!' + markdown_link
return markdown_link, file_storage
def process_parts(parts):