aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/Scrape.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/Scrape.php b/include/Scrape.php
index b4a5dd849..0272dde12 100644
--- a/include/Scrape.php
+++ b/include/Scrape.php
@@ -33,6 +33,11 @@ function scrape_dfrn($url) {
$x = $item->getAttribute('rel');
if(substr($x,0,5) == "dfrn-")
$ret[$x] = $item->getAttribute('href');
+ if($x === 'lrdd') {
+ $decoded = urldecode($item->getAttribute('href'));
+ if(preg_match('/acct:([^@]*)@/',$decoded,$matches))
+ $ret['nick'] = $matches[1];
+ }
}
// Pull out hCard profile elements