diff --git a/lib/jabber.php b/lib/jabber.php
index 1e609377fd..77bc316dd7 100644
--- a/lib/jabber.php
+++ b/lib/jabber.php
@@ -117,6 +117,7 @@ function jabber_send_notice($to, $notice) {
# Extra stuff defined by Twitter, needed by twitter clients
function jabber_format_entry($profile, $notice) {
+
$noticeurl = common_local_url('shownotice',
array('notice' => $notice->id));
$msg = jabber_format_notice($profile, $notice);
@@ -135,6 +136,12 @@ function jabber_format_entry($profile, $notice) {
$entry .= "