From: Evan Prodromou Date: Fri, 18 Jul 2008 06:31:30 +0000 (-0400) Subject: add an HTML payload to outgoing notices X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5f55c96157811ee22400824d91f28d33bec0e218;p=quix0rs-gnu-social.git add an HTML payload to outgoing notices darcs-hash:20080718063130-84dde-01cc0d9d9cf92e5ad9f5c079c771e2ea64c8d5f2.gz --- 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 .= "".common_date_w3dtf($notice->created)."\n"; $entry .= "".common_date_w3dtf($notice->modified)."\n"; $entry .= "\n"; + + $html = "\n\n"; + $html .= "\n"; + $html .= ($notice->rendered) ? $notice->rendered : common_render_content($notice->content, $notice); + $html .= "\n\n"; + $html .= "\n\n"; $event = "\n"; $event .= "