use mailto: to specify a new email contact and over-rider webfinger
This commit is contained in:
parent
e3841ce15c
commit
cbfb40c43f
1 changed files with 7 additions and 1 deletions
|
@ -297,7 +297,13 @@ function probe_url($url) {
|
||||||
$at_addr = ((strpos($url,'@') !== false) ? true : false);
|
$at_addr = ((strpos($url,'@') !== false) ? true : false);
|
||||||
|
|
||||||
if(! $twitter) {
|
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)) {
|
if(count($links)) {
|
||||||
logger('probe_url: found lrdd links: ' . print_r($links,true), LOGGER_DATA);
|
logger('probe_url: found lrdd links: ' . print_r($links,true), LOGGER_DATA);
|
||||||
|
|
Loading…
Reference in a new issue