jenkins-bot has submitted this change and it was merged.
Change subject: postId and topicId can be strings or UUIDs
......................................................................
postId and topicId can be strings or UUIDs
Bug: T92906
Change-Id: I6cea69c2382d40c330a224eeafe2a9bc9724abce
---
M maintenance/FlowFixLog.php
1 file changed, 2 insertions(+), 2 deletions(-)
Approvals:
Mattflaschen: Looks good to me, approved
jenkins-bot: Verified
diff --git a/maintenance/FlowFixLog.php b/maintenance/FlowFixLog.php
index 94414a0..518f8cb 100644
--- a/maintenance/FlowFixLog.php
+++ b/maintenance/FlowFixLog.php
@@ -101,10 +101,10 @@
$topic = false;
$post = false;
if ( isset( $params['topicId'] ) ) {
- $topic = $this->loadTopic( $params['topicId'] );
+ $topic = $this->loadTopic( UUID::create(
$params['topicId'] ) );
}
if ( isset( $params['postId'] ) ) {
- $post = $this->loadPost( $params['postId'] );
+ $post = $this->loadPost( UUID::create(
$params['postId'] ) );
$topic = $topic ?: $post->getRoot();
}
--
To view, visit https://gerrit.wikimedia.org/r/198133
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I6cea69c2382d40c330a224eeafe2a9bc9724abce
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: EBernhardson <[email protected]>
Gerrit-Reviewer: Mattflaschen <[email protected]>
Gerrit-Reviewer: SG <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits