aboutsummaryrefslogtreecommitdiffstats
path: root/include/Scrape.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-08-09 22:11:01 -0700
committerFriendika <info@friendika.com>2011-08-09 22:11:01 -0700
commitcbfb40c43fd63d149ed3d4aa1b056bccb437cc32 (patch)
tree4dcf77fd1fb625db6c7b21529aa77a0af96dfb59 /include/Scrape.php
parente3841ce15cbb788e14afbe253059211078169a39 (diff)
downloadvolse-hubzilla-cbfb40c43fd63d149ed3d4aa1b056bccb437cc32.tar.gz
volse-hubzilla-cbfb40c43fd63d149ed3d4aa1b056bccb437cc32.tar.bz2
volse-hubzilla-cbfb40c43fd63d149ed3d4aa1b056bccb437cc32.zip
use mailto: to specify a new email contact and over-rider webfinger
Diffstat (limited to 'include/Scrape.php')
-rw-r--r--include/Scrape.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/Scrape.php b/include/Scrape.php
index 9bf89a49e..ef5d7dcae 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);