mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-23 22:13:34 +00:00
Merge "Apply PST when generating diff"
This commit is contained in:
commit
09d8df88d1
|
@ -211,7 +211,13 @@ class ApiVisualEditor extends ApiBase {
|
|||
'action' => 'query',
|
||||
'prop' => 'revisions',
|
||||
'titles' => $title->getPrefixedDBkey(),
|
||||
'rvdifftotext' => $wikitext
|
||||
'rvdifftotext' => ContentHandler::makeContent( $wikitext, $title )
|
||||
->preSaveTransform(
|
||||
$title,
|
||||
$this->getUser(),
|
||||
WikiPage::factory( $title )->makeParserOptions( $this->getContext() )
|
||||
)
|
||||
->serialize( 'text/x-wiki' )
|
||||
);
|
||||
$api = new ApiMain(
|
||||
new DerivativeRequest(
|
||||
|
|
Loading…
Reference in a new issue