mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-12 01:54:26 +02:00
mucho progress on notifier, email style dfrn url's
This commit is contained in:
parent
e98aaa3cbd
commit
9a6a60a9c1
9 changed files with 181 additions and 34 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue