infrastructure for swat0 (#fsw)

This commit is contained in:
Mike Macgirvin
2010-11-01 23:42:26 -07:00
parent 36a77c6db2
commit d8630dbdd8
7 changed files with 172 additions and 34 deletions
+3 -3
View File
@@ -119,13 +119,13 @@ function item_post(&$a) {
$tags = get_tags($body);
if($tags) {
if(count($tags)) {
foreach($tags as $tag) {
if(strpos($tag,'@') === 0) {
$name = substr($tag,1);
if(strpos($name,'@')) {
if((strpos($name,'@')) || (strpos($name,'http://'))) {
$newname = $name;
$links = @webfinger($name);
$links = @lrdd($name);
if(count($links)) {
foreach($links as $link) {
if($link['@attributes']['rel'] === 'http://webfinger.net/rel/profile-page')