EBernhardson has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/198133

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(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Flow 
refs/changes/33/198133/1

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: newchange
Gerrit-Change-Id: I6cea69c2382d40c330a224eeafe2a9bc9724abce
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: EBernhardson <[email protected]>

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

Reply via email to