From: Friendika Date: Wed, 10 Aug 2011 05:11:01 +0000 (-0700) Subject: use mailto: to specify a new email contact and over-rider webfinger X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cbfb40c43fd63d149ed3d4aa1b056bccb437cc32;p=friendica.git use mailto: to specify a new email contact and over-rider webfinger --- diff --git a/include/Scrape.php b/include/Scrape.php index 9bf89a49ed..ef5d7dcae4 100644 --- a/include/Scrape.php +++ b/include/Scrape.php @@ -297,7 +297,13 @@ function probe_url($url) { $at_addr = ((strpos($url,'@') !== false) ? true : false); if(! $twitter) { - $links = lrdd($url); + + if(strpos($url,'mailto:') !== false && $at_addr) { + $url = str_replace('mailto:','',$url); + $links = array(); + } + else + $links = lrdd($url); if(count($links)) { logger('probe_url: found lrdd links: ' . print_r($links,true), LOGGER_DATA);