status.net mentions to non-followers require the numeric profile URL, not the nickname profile URL. Though it works when they are a follower.
This commit is contained in:
parent
4efa0f1e81
commit
05d3eb59ec
4 changed files with 20 additions and 3 deletions
4
boot.php
4
boot.php
|
@ -1941,8 +1941,10 @@ function get_mentions($item) {
|
|||
$arr = explode(',',$item['tag']);
|
||||
foreach($arr as $x) {
|
||||
$matches = null;
|
||||
if(preg_match('/@\[url=([^\]]*)\]/',$x,$matches))
|
||||
if(preg_match('/@\[url=([^\]]*)\]/',$x,$matches)) {
|
||||
$o .= "\t\t" . '<link rel="mentioned" href="' . $matches[1] . '" />' . "\r\n";
|
||||
$o .= "\t\t" . '<link rel="ostatus:attention" href="' . $matches[1] . '" />' . "\r\n";
|
||||
}
|
||||
}
|
||||
return $o;
|
||||
}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue