We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit db3b56a2 authored by Evan Prodromou's avatar Evan Prodromou

Display rendered HTML for a notice

Display the rendered HTML for a notice
parent e438334c
......@@ -143,6 +143,7 @@ class CometPlugin extends Plugin
$arr = $act->twitter_status_array($notice, true);
$arr['url'] = $notice->bestUrl();
$arr['html'] = htmlspecialchars($notice->rendered);
$profile = $notice->getProfile();
$arr['user']['profile_url'] = $profile->profileurl;
......@@ -34,6 +34,8 @@ var updater = function()
function makeNoticeItem(data)
user = data['user'];
html = data['html'].replace(/&amp;/g,'&').replace(/&lt;/g,'<').replace(/&gt;/g,'>');
ni = "<li class=\"hentry notice\" id=\"notice-"+data['id']+"\">"+
"<div class=\"entry-title\">"+
"<span class=\"vcard author\">"+
......@@ -42,7 +44,7 @@ var updater = function()
"<span class=\"nickname fn\">"+user['screen_name']+"</span>"+
"<p class=\"entry-content\">"+data['text']+"</p>"+
"<p class=\"entry-content\">"+html+"</p>"+
"<div class=\"entry-content\">"+
"<dl class=\"timestamp\">"+
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment