]> git.mxchange.org Git - friendica.git/commitdiff
use mailto: to specify a new email contact and over-rider webfinger
authorFriendika <info@friendika.com>
Wed, 10 Aug 2011 05:11:01 +0000 (22:11 -0700)
committerFriendika <info@friendika.com>
Wed, 10 Aug 2011 05:11:01 +0000 (22:11 -0700)
include/Scrape.php

index 9bf89a49eda8952e51d86dcf0450ffefb5f13e12..ef5d7dcae4751f6cd86f246de4e2e4c1d96ef22e 100644 (file)
@@ -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);