common_render_content doesn't require a Profile now

This commit is contained in:
Mikael Nordfeldth
2016-01-01 18:40:11 +01:00
parent 54325e266f
commit e02c10a589
8 changed files with 19 additions and 32 deletions

View File

@@ -355,12 +355,8 @@ class XmppPlugin extends ImPlugin
// Parent notice was probably deleted.
$xs->text(": ");
}
if (!empty($notice->rendered)) {
$notice->rendered = str_replace("\t", "", $notice->rendered);
$xs->raw($notice->rendered);
} else {
$xs->raw(common_render_content($notice->content, $notice));
}
// FIXME: Why do we replace \t with ''? is it just to make it pretty? shouldn't whitespace be handled well...?
$xs->raw(str_replace("\t", "", $notice->getRendered()));
$xs->text(" ");
$xs->element('a', array(
'href'=>common_local_url('conversation',