1
1
Fork 0

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:
Friendika 2011-02-26 01:53:18 -08:00
commit 05d3eb59ec
4 changed files with 20 additions and 3 deletions

View file

@ -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;
}}