aboutsummaryrefslogtreecommitdiffstats
path: root/mod/item.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-02-08 18:44:30 -0800
committerFriendika <info@friendika.com>2011-02-08 18:44:30 -0800
commitf70a0b028288fa13c64f1ffaa310765a95347dac (patch)
tree89507dc18fd29a50c999c2b60cc89b6ef2406078 /mod/item.php
parent766c4778cb0a678ef7f55e56cbd11497a73ae6cb (diff)
downloadvolse-hubzilla-f70a0b028288fa13c64f1ffaa310765a95347dac.tar.gz
volse-hubzilla-f70a0b028288fa13c64f1ffaa310765a95347dac.tar.bz2
volse-hubzilla-f70a0b028288fa13c64f1ffaa310765a95347dac.zip
more graceful handling of some statusnet followups
Diffstat (limited to 'mod/item.php')
-rw-r--r--mod/item.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/mod/item.php b/mod/item.php
index 2264ea5b9..737fe8341 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -246,18 +246,20 @@ function item_post(&$a) {
);
}
if(count($r)) {
- if($r[0]['network'] === 'stat')
- $stat = true;
$profile = $r[0]['url'];
- $newname = $r[0]['name'];
+ if($r[0]['network'] === 'stat') {
+ $newname = $r[0]['nick'];
+ $stat = true;
+ }
+ else
+ $newname = $r[0]['name'];
if(strlen($inform))
$inform .= ',';
$inform .= 'cid:' . $r[0]['id'];
}
}
if($profile) {
- if(! $stat)
- $body = str_replace('@' . $name, '@' . '[url=' . $profile . ']' . $newname . '[/url]', $body);
+ $body = str_replace('@' . $name, '@' . '[url=' . $profile . ']' . $newname . '[/url]', $body);
$profile = str_replace(',','%2c',$profile);
if(strlen($str_tags))
$str_tags .= ',';