aboutsummaryrefslogtreecommitdiffstats
path: root/mod/item.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-11-01 23:42:26 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-11-01 23:42:26 -0700
commitd8630dbdd8217ff31581bc521ceb1cd6be9b999c (patch)
tree991ddcc47b03058cf61479faf2dedc25eb6ad039 /mod/item.php
parent36a77c6db2272d7db31982642715034ce718552f (diff)
downloadvolse-hubzilla-d8630dbdd8217ff31581bc521ceb1cd6be9b999c.tar.gz
volse-hubzilla-d8630dbdd8217ff31581bc521ceb1cd6be9b999c.tar.bz2
volse-hubzilla-d8630dbdd8217ff31581bc521ceb1cd6be9b999c.zip
infrastructure for swat0 (#fsw)
Diffstat (limited to 'mod/item.php')
-rw-r--r--mod/item.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/mod/item.php b/mod/item.php
index 703267992..0389788ec 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -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')