diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-07-08 07:03:25 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-07-08 07:03:25 -0700 |
commit | 9a6a60a9c1c7f781790849173e309ac0664d7b35 (patch) | |
tree | b0597e8aeaa20d6ded493b2c053e3e976a53115a /mod/dfrn_request.php | |
parent | e98aaa3cbd2c14ab2f1b8534c8c63708086fe0f1 (diff) | |
download | volse-hubzilla-9a6a60a9c1c7f781790849173e309ac0664d7b35.tar.gz volse-hubzilla-9a6a60a9c1c7f781790849173e309ac0664d7b35.tar.bz2 volse-hubzilla-9a6a60a9c1c7f781790849173e309ac0664d7b35.zip |
mucho progress on notifier, email style dfrn url's
Diffstat (limited to 'mod/dfrn_request.php')
-rw-r--r-- | mod/dfrn_request.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mod/dfrn_request.php b/mod/dfrn_request.php index b6ae4346d..7fb55c4bf 100644 --- a/mod/dfrn_request.php +++ b/mod/dfrn_request.php @@ -166,6 +166,15 @@ function dfrn_request_post(&$a) { return; } + if(strstr($url,'@')) { + $username = substr($url,0,strpos($url,'@')); + $hostname = substr($url,strpos($url,'@') + 1); + require_once('Scrape.php'); + + $parms = scrape_meta('http://' . $url); + if((x($parms,'dfrn-template')) && strstr($parms['dfrn-template'],'%s')) + $url = sprintf($parms['dfrn-template'],$username); + } $ret = q("SELECT * FROM `contact` WHERE `uid` = %d AND `url` = '%s' LIMIT 1", intval($uid), |