]> git.mxchange.org Git - friendica.git/blobdiff - include/enotify.php
Relay: Avoid sending relay posts to servers that already received content
[friendica.git] / include / enotify.php
index e0629a53eb4236a5e9ebba575a7feed823462173..68208ec5ac612f2d59ac743dbab082d446abb5e7 100644 (file)
@@ -12,8 +12,6 @@ use Friendica\Database\DBM;
 use Friendica\Util\DateTimeFormat;
 use Friendica\Util\Emailer;
 
-require_once 'include/html2bbcode.php';
-
 /**
  * @brief Creates a notification entry and possibly sends a mail
  *
@@ -47,10 +45,7 @@ function notification($params)
                $hostname = substr($hostname, 0, strpos($hostname, ':'));
        }
 
-       $sender_email = $a->config['sender_email'];
-       if (empty($sender_email)) {
-               $sender_email = L10n::t('noreply').'@'.$hostname;
-       }
+       $sender_email = $a->getSenderEmailAddress();
 
        if ($params['type'] != SYSTEM_EMAIL) {
                $user = dba::selectFirst('user', ['nickname', 'page-flags'],