aboutsummaryrefslogtreecommitdiffstats
path: root/include/enotify.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-06-18 18:48:41 -0700
committerfriendica <info@friendica.com>2013-06-18 18:48:41 -0700
commit40c8e89d8476696a2e4a57a27970f6067b803e22 (patch)
treea34f5c334db517c7cf4de8b885ab478bdff035d5 /include/enotify.php
parent6220ab4b549e8a754b2d331d4e8b4fae36e8f98f (diff)
downloadvolse-hubzilla-40c8e89d8476696a2e4a57a27970f6067b803e22.tar.gz
volse-hubzilla-40c8e89d8476696a2e4a57a27970f6067b803e22.tar.bz2
volse-hubzilla-40c8e89d8476696a2e4a57a27970f6067b803e22.zip
undo comment policy override - there are a handful of stored posts from the 17th-June with a broken policy (which won't have a comment box) but it seems to be working for both recent and older posts.
Diffstat (limited to 'include/enotify.php')
-rw-r--r--include/enotify.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/enotify.php b/include/enotify.php
index 71629b9d9..3b7a643ed 100644
--- a/include/enotify.php
+++ b/include/enotify.php
@@ -50,6 +50,8 @@ function notification($params) {
$additional_mail_header = "";
+ // We really should pass this through localize_item - but only if we have a complete item. We may only have a couple of elements.
+
if(array_key_exists('item',$params)) {
$title = $params['item']['title'];
$body = $params['item']['body'];
@@ -352,6 +354,7 @@ function notification($params) {
logger('notification: sending notification email');
+
$textversion = strip_tags(html_entity_decode(bbcode(stripslashes(str_replace(array("\\r\\n", "\\r", "\\n"), "\n",
$body))),ENT_QUOTES,'UTF-8'));