]> git.mxchange.org Git - friendica.git/blobdiff - include/enotify.php
bug #447 - make followed feeds private
[friendica.git] / include / enotify.php
index ca134ac86c1814b0d595cc68b64bd5b71d06c5ee..fe0f128b600e16bf4fd13c61a9e6a7a5beb8f5ab 100644 (file)
@@ -13,13 +13,16 @@ function notification($params) {
 
        $banner = t('Friendica Notification');
        $product = FRIENDICA_PLATFORM;
-       $siteurl = z_path();
+       $siteurl = $a->get_baseurl(true);
        $thanks = t('Thank You,');
        $sitename = get_config('config','sitename');
        $site_admin = sprintf( t('%s Administrator'), $sitename);
 
        $sender_name = $product;
        $hostname = $a->get_hostname();
+       if(strpos($hostname,':'))
+               $hostname = substr($hostname,0,strpos($hostname,':'));
+
        $sender_email = t('noreply') . '@' . $hostname;
        $additional_mail_header = "";