projects
/
friendica.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3841ce
)
use mailto: to specify a new email contact and over-rider webfinger
author
Friendika
<info@friendika.com>
Wed, 10 Aug 2011 05:11:01 +0000
(22:11 -0700)
committer
Friendika
<info@friendika.com>
Wed, 10 Aug 2011 05:11:01 +0000
(22:11 -0700)
include/Scrape.php
patch
|
blob
|
history
diff --git
a/include/Scrape.php
b/include/Scrape.php
index 9bf89a49eda8952e51d86dcf0450ffefb5f13e12..ef5d7dcae4751f6cd86f246de4e2e4c1d96ef22e 100644
(file)
--- 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);