]> git.mxchange.org Git - friendica.git/blobdiff - src/App.php
Merge pull request #8237 from annando/a11y-2
[friendica.git] / src / App.php
index ceb11dd797ecdb567691e59208d82343d54626da..892a4c7790e4955283f13f05de000326e3f92645 100644 (file)
@@ -242,27 +242,6 @@ class App
                        $this->baseURL->get();
        }
 
-       /**
-        * Generates the site's default sender email address
-        *
-        * @return string
-        * @throws HTTPException\InternalServerErrorException
-        */
-       public function getSenderEmailAddress()
-       {
-               $sender_email = $this->config->get('config', 'sender_email');
-               if (empty($sender_email)) {
-                       $hostname = $this->baseURL->getHostname();
-                       if (strpos($hostname, ':')) {
-                               $hostname = substr($hostname, 0, strpos($hostname, ':'));
-                       }
-
-                       $sender_email = 'noreply@' . $hostname;
-               }
-
-               return $sender_email;
-       }
-
        /**
         * Returns the current theme name. May be overriden by the mobile theme name.
         *