include diaspora mentions in personal (requires adding a Diaspora profile url because they don't use ours)
This commit is contained in:
parent
f6f151433c
commit
0c24784f5e
4 changed files with 24 additions and 6 deletions
|
@ -621,7 +621,16 @@ function diaspora_post($importer,$xml) {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$cnt = preg_match_all('/@\[url=(.*?)\[\/url\]/ism',$body,$matches,PREG_SET_ORDER);
|
||||
if($cnt) {
|
||||
foreach($matches as $mtch) {
|
||||
if(strlen($str_tags))
|
||||
$str_tags .= ',';
|
||||
$str_tags .= '@[url=' . $mtch[1] . '[/url]';
|
||||
}
|
||||
}
|
||||
|
||||
$datarray['uid'] = $importer['uid'];
|
||||
$datarray['contact-id'] = $contact['id'];
|
||||
$datarray['wall'] = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue