jenkins-bot has submitted this change and it was merged.

Change subject: Use the MessengerBot's object rather than the current user's 
when generating preview HTML
......................................................................


Use the MessengerBot's object rather than the current user's when generating 
preview HTML

The easiest way to test this is previewing "~~~~". Previously this would have
shown the current user's signature, now it will show the bot's signature.

Change-Id: I744042d551b253b56dcc9f23a93a7632e4830deb
---
M SpecialMassMessage.php
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Legoktm: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/SpecialMassMessage.php b/SpecialMassMessage.php
index c0c21ce..ea23173 100644
--- a/SpecialMassMessage.php
+++ b/SpecialMassMessage.php
@@ -281,7 +281,7 @@
 
                // Hooks not being run: EditPageGetPreviewContent, 
EditPageGetPreviewText
 
-               $content = $content->preSaveTransform( $firstTarget, 
$this->getUser(), $parserOptions );
+               $content = $content->preSaveTransform( $firstTarget, 
MassMessage::getMessengerUser(), $parserOptions );
                $parserOutput = $content->getParserOutput( $firstTarget, null, 
$parserOptions );
                $previewHTML = $parserOutput->getText();
                $this->getOutput()->addWikiMsg( 'massmessage-just-preview' );

-- 
To view, visit https://gerrit.wikimedia.org/r/75996
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I744042d551b253b56dcc9f23a93a7632e4830deb
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MassMessage
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: Yuvipanda <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to