Legoktm has uploaded a new change for review.
https://gerrit.wikimedia.org/r/75996
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(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MassMessage
refs/changes/96/75996/1
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: newchange
Gerrit-Change-Id: I744042d551b253b56dcc9f23a93a7632e4830deb
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MassMessage
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits