add rel=mentioned links for tagged persons
This commit is contained in:
parent
b376f21533
commit
4f4d6bace6
6 changed files with 28 additions and 1 deletions
14
boot.php
14
boot.php
|
|
@ -1358,3 +1358,17 @@ function like_puller($a,$item,&$arr,$mode) {
|
|||
return;
|
||||
}}
|
||||
|
||||
|
||||
function get_mentions($item) {
|
||||
$o = '';
|
||||
if(! strlen($item['tag']))
|
||||
return $o;
|
||||
|
||||
$arr = explode(',',$item['tag']);
|
||||
foreach($arr as $x) {
|
||||
$matches = null;
|
||||
if(preg_match('/@\[url=([^\]]*)\]/',$x,$matches))
|
||||
$o .= "\t\t" . '<link rel="mentioned" href="' . $matches[1] . '" />' . "\r\n";
|
||||
}
|
||||
return $o;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue