Skip to content

Commit 84608b8

Browse files
authored
Force bot flag to be set on Main Page creation (#482)
Bug: T391479
1 parent 5b4cd08 commit 84608b8

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@
22

33
Tags have the format: `<MediaWiki core version>-<PHP Version>-<date>-<build number>`
44

5+
# 1.39-7.4-20250610-0
6+
- Force bot flag to be set on Main Page creation (T391479)
7+
58
# 1.39-7.4-20250526-0
6-
- Add `PlatformReservedUser` to `bot` group
9+
- Add `PlatformReservedUser` to `bot` group (T391479)
710

811
# 1.39-7.4-20250415-0
912
- Add OAuth2 settings

dist-persist/wbstack/src/Internal/ApiWbStackInit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,6 @@ static public function initMainPage() {
154154
$updater = $page->newPageUpdater( $user );
155155
$updater->setContent( SlotRecord::MAIN, $content );
156156
$updater->setRcPatrolStatus( \RecentChange::PRC_PATROLLED );
157-
$updater->saveRevision( $comment, EDIT_NEW );
157+
$updater->saveRevision( $comment, EDIT_NEW | EDIT_FORCE_BOT );
158158
}
159159
}

dist/wbstack/src/Internal/ApiWbStackInit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,6 @@ static public function initMainPage() {
154154
$updater = $page->newPageUpdater( $user );
155155
$updater->setContent( SlotRecord::MAIN, $content );
156156
$updater->setRcPatrolStatus( \RecentChange::PRC_PATROLLED );
157-
$updater->saveRevision( $comment, EDIT_NEW );
157+
$updater->saveRevision( $comment, EDIT_NEW | EDIT_FORCE_BOT );
158158
}
159159
}

0 commit comments

Comments
 (0)