X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FXmpp%2FXmppPlugin.php;h=f8476cd8f2b2fadc7864bcf3760fd83debc6840f;hb=14cb2d53980f27fb07f0327644a47e8722718a25;hp=8c700bae8b67d40ddcc246a61d4444d474c856a6;hpb=89d3d9b2cef52efe054128f7f1f457ee260cee61;p=quix0rs-gnu-social.git diff --git a/plugins/Xmpp/XmppPlugin.php b/plugins/Xmpp/XmppPlugin.php index 8c700bae8b..f8476cd8f2 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', @@ -465,7 +461,7 @@ class XmppPlugin extends ImPlugin $versions[] = array('name' => 'XMPP', 'version' => GNUSOCIAL_VERSION, 'author' => 'Craig Andrews, Evan Prodromou', - 'homepage' => 'http://status.net/wiki/Plugin:XMPP', + 'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/XMPP', 'rawdescription' => // TRANS: Plugin description. _m('The XMPP plugin allows users to send and receive notices over the XMPP/Jabber network.'));