aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-01-15 14:40:00 -0800
committerfriendica <info@friendica.com>2015-01-15 14:40:00 -0800
commit35276c2da92a29132be2aaa75a63658d440e87e5 (patch)
treee66e003f9b9af4d5d863e5f8f6001b51a6440b1b
parentf57a652e6be68ed7c7f307c9cde1f624635fa83a (diff)
downloadvolse-hubzilla-35276c2da92a29132be2aaa75a63658d440e87e5.tar.gz
volse-hubzilla-35276c2da92a29132be2aaa75a63658d440e87e5.tar.bz2
volse-hubzilla-35276c2da92a29132be2aaa75a63658d440e87e5.zip
backend for mailhost addon
-rw-r--r--include/enotify.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/enotify.php b/include/enotify.php
index 3fef3ba0a..6fc771c58 100644
--- a/include/enotify.php
+++ b/include/enotify.php
@@ -421,6 +421,14 @@ function notification($params) {
logger('notification: sending notification email');
+ $hn = get_pconfig($recip['channel_id'],'system','email_notify_host');
+ if($hn && (! stristr(get_app()->get_hostname(),$hn))) {
+ // this isn't the email notification host
+ pop_lang();
+ return;
+ }
+
+
$textversion = strip_tags(html_entity_decode(bbcode(stripslashes(str_replace(array("\\r", "\\n"), array( "", "\n"), $body))),ENT_QUOTES,'UTF-8'));