]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Mail.php
Meaningful notification message
[friendica.git] / src / Model / Mail.php
index 9c3bd58bb66d64d37b3875491db4b0924b26d178..7eaeb09b5e6ba85b6866a84bd8f56f0c13869f37 100644 (file)
@@ -173,7 +173,7 @@ class Mail
                        $recip_host = substr($recip_host, 0, strpos($recip_host, '/'));
 
                        $recip_handle = (($contact['addr']) ? $contact['addr'] : $contact['nick'] . '@' . $recip_host);
-                       $sender_handle = $a->user['nickname'] . '@' . substr(DI::baseUrl(), strpos(DI::baseUrl(), '://') + 3);
+                       $sender_handle = $a->getLoggedInUserNickname() . '@' . substr(DI::baseUrl(), strpos(DI::baseUrl(), '://') + 3);
 
                        $conv_guid = System::createUUID();
                        $convuri = $recip_handle . ':' . $conv_guid;
@@ -197,7 +197,7 @@ class Mail
                        $replyto = $convuri;
                }
 
-               $post_id =self::insert(
+               $post_id = self::insert(
                        [
                                'uid' => local_user(),
                                'guid' => $guid,