-
Richard Mansfield authored
In commit 93c012f2 , the forum and group name were added to the body of forum post email notifications, each wrapped in a call to clean_html (htmlpurifier). This crashes cron due to out-of-memory errors whenever there are more than a few subscribers, and stops notifications from being sent out at all. The forum and group name only need to be rendered once per forum post, so this could be fixed by moving the clean_html call up to the activity constructor, rather than doing it in the get_emailmessage, get_htmlmessage functions. These functions get called for every single subscriber notification, to ensure the string is displayed in the subscriber's language. But because group and forum names are never rendered as html, we don't need to use htmlpurifier - html escaping is more appropriate and less memory-hungry. Change-Id: I0a4133b0a11e0e0004bdab1c29984ab4fc5dfbbf Signed-off-by: Richard Mansfield <richard.mansfield@catalyst.net.nz>
1c022eed