]> git.mxchange.org Git - friendica.git/commitdiff
Simplify sender handle assignment in Model\Mail
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 27 Jun 2020 13:34:19 +0000 (09:34 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 27 Jun 2020 13:34:29 +0000 (09:34 -0400)
src/Model/Mail.php

index 098c200292c109cf23b9c5720948d9335816b6a2..405635215197f48de88b6a9473c8c802908922e2 100644 (file)
@@ -276,10 +276,7 @@ class Mail
 
                $recip_handle = $recipient['nickname'] . '@' . substr(DI::baseUrl(), strpos(DI::baseUrl(), '://') + 3);
 
-               $sender_nick = basename($me['url']);
-               $sender_host = substr($me['url'], strpos($me['url'], '://') + 3);
-               $sender_host = substr($sender_host, 0, strpos($sender_host, '/'));
-               $sender_handle = $sender_nick . '@' . $sender_host;
+               $sender_handle = $me['addr'];
 
                $handles = $recip_handle . ';' . $sender_handle;