kmpekala / django-forum

Automatically exported from code.google.com/p/django-forum
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Please add the author to the template-context of the notify email #87

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
It is helpfull for users if the notify-email for subscribed threads
contains the author of the new reply. 

I added this with this one-liner:

{{{
Index: forum/views.py
===================================================================
--- forum/views.py  (revision 54)
+++ forum/views.py  (working copy)
@@ -145,6 +145,7 @@
                 mail_tpl = loader.get_template('forum/notify.txt')
                 c = Context({
                     'body': wordwrap(striptags(body), 72),
+                    'author': request.user,
                     'site' : Site.objects.get_current(),
                     'thread': t,
                     })
}}}

Original issue reported on code.google.com by a...@rcs4u.de on 24 Feb 2010 at 2:30