summaryrefslogtreecommitdiff
path: root/lib/jabber.php
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2009-11-11 18:00:58 -0500
committerCraig Andrews <candrews@integralblue.com>2009-11-11 18:00:58 -0500
commit074b9faee0efafa2917e39257ab94f95fb6960b0 (patch)
treeba93513d73d742c736f27fee7d3991d56d17ef11 /lib/jabber.php
parent8a6590a7e800e33787ffc55dbd0b2b36ff140504 (diff)
Remove alt text on avatar url (so pidgin doesn't show it)
surround notice_id with [], looks nicer
Diffstat (limited to 'lib/jabber.php')
-rw-r--r--lib/jabber.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/jabber.php b/lib/jabber.php
index 73f2ec660..23c2e0d94 100644
--- a/lib/jabber.php
+++ b/lib/jabber.php
@@ -176,7 +176,7 @@ function jabber_format_entry($profile, $notice)
$xs = new XMLStringer();
$xs->elementStart('html', array('xmlns' => 'http://jabber.org/protocol/xhtml-im'));
$xs->elementStart('body', array('xmlns' => 'http://www.w3.org/1999/xhtml'));
- $xs->element("img", array('src'=> $profile->avatarUrl(AVATAR_MINI_SIZE) , 'alt' => $profile->nickname));
+ $xs->element("img", array('src'=> $profile->avatarUrl(AVATAR_MINI_SIZE)));
$xs->element('a', array('href' => $profile->profileurl),
$profile->nickname);
$xs->text(": ");
@@ -185,11 +185,11 @@ function jabber_format_entry($profile, $notice)
} else {
$xs->raw(common_render_content($notice->content, $notice));
}
- $xs->raw(" ");
+ $xs->text(" ");
$xs->element('a', array(
'href'=>common_local_url('conversation',
array('id' => $notice->conversation)).'#notice-'.$notice->id
- ),sprintf(_('notice id: %s'),$notice->id));
+ ),sprintf(_('[%s]'),$notice->id));
$xs->elementEnd('body');
$xs->elementEnd('html');