diff options
author | Evan Prodromou <evan@status.net> | 2009-10-28 14:21:51 -0400 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2009-10-28 14:21:51 -0400 |
commit | 6c615f6801540d8b28cdc6d4ecf817943c11db34 (patch) | |
tree | 86967dd32fcbad904cd06b866b2f7cd0e748343e /lib/jabber.php | |
parent | 7df082abb8f9570e55bac209068146e34b3781b4 (diff) | |
parent | bf701b8235c22e648e44adfed8a9cb8e30cf9eab (diff) |
Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.x
Diffstat (limited to 'lib/jabber.php')
-rw-r--r-- | lib/jabber.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/jabber.php b/lib/jabber.php index 3dcdce5db..73f2ec660 100644 --- a/lib/jabber.php +++ b/lib/jabber.php @@ -176,6 +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('a', array('href' => $profile->profileurl), $profile->nickname); $xs->text(": "); @@ -184,6 +185,11 @@ function jabber_format_entry($profile, $notice) } else { $xs->raw(common_render_content($notice->content, $notice)); } + $xs->raw(" "); + $xs->element('a', array( + 'href'=>common_local_url('conversation', + array('id' => $notice->conversation)).'#notice-'.$notice->id + ),sprintf(_('notice id: %s'),$notice->id)); $xs->elementEnd('body'); $xs->elementEnd('html'); |