mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 06:15:11 +00:00
this should be the final piece of the puzzle
This commit is contained in:
parent
f09b7ca409
commit
e45a9b1522
1 changed files with 14 additions and 0 deletions
|
@ -864,6 +864,20 @@ function diaspora_post($importer,$xml,$msg) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$cnt = preg_match_all('/@\[zrl=(.*?)\](.*?)\[\/zrl\]/ism',$body,$matches,PREG_SET_ORDER);
|
||||||
|
if($cnt) {
|
||||||
|
foreach($matches as $mtch) {
|
||||||
|
$datarray['term'][] = array(
|
||||||
|
'uid' => $importer['channel_id'],
|
||||||
|
'type' => TERM_MENTION,
|
||||||
|
'otype' => TERM_OBJ_POST,
|
||||||
|
'term' => $mtch[2],
|
||||||
|
'url' => $mtch[1]
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// this won't work for Friendica or Redmatrix but it's probably the best we can do.
|
// this won't work for Friendica or Redmatrix but it's probably the best we can do.
|
||||||
$plink = 'https://'.substr($diaspora_handle,strpos($diaspora_handle,'@')+1).'/posts/'.$guid;
|
$plink = 'https://'.substr($diaspora_handle,strpos($diaspora_handle,'@')+1).'/posts/'.$guid;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue