X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FXmpp%2FXmppPlugin.php;h=7112b8b63eaeb8013bf24be41ff05047ab8b1b33;hb=d6b28c64830f632bb2f4b6f3c9369b9e56ad217a;hp=8c700bae8b67d40ddcc246a61d4444d474c856a6;hpb=0f938ff23479d92113620552eab76b50613c87e3;p=quix0rs-gnu-social.git diff --git a/plugins/Xmpp/XmppPlugin.php b/plugins/Xmpp/XmppPlugin.php index 8c700bae8b..7112b8b63e 100644 --- a/plugins/Xmpp/XmppPlugin.php +++ b/plugins/Xmpp/XmppPlugin.php @@ -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', @@ -442,7 +438,7 @@ class XmppPlugin extends ImPlugin * * @return boolean hook return */ - function onGetValidDaemons(&$daemons) + function onGetValidDaemons(array &$daemons) { if( isset($this->server) && isset($this->port) &&