jenkins-bot has submitted this change and it was merged.
Change subject: Fix notice on flow history page
......................................................................
Fix notice on flow history page
Change-Id: I93f55c384b9eb65a3eb0180352bb0ad720d99153
---
M includes/Formatter/RevisionFormatter.php
1 file changed, 4 insertions(+), 1 deletion(-)
Approvals:
Catrope: Looks good to me, approved
jenkins-bot: Verified
diff --git a/includes/Formatter/RevisionFormatter.php
b/includes/Formatter/RevisionFormatter.php
index 4a68ef5..1c7574d 100644
--- a/includes/Formatter/RevisionFormatter.php
+++ b/includes/Formatter/RevisionFormatter.php
@@ -340,7 +340,10 @@
$row
);
- $res['content']['plaintext'] =
$res['properties']['topic-of-post-text-from-html']['plaintext'];
+ // moderated posts won't have that property
+ if ( isset(
$res['properties']['topic-of-post-text-from-html']['plaintext'] ) ) {
+ $res['content']['plaintext'] =
$res['properties']['topic-of-post-text-from-html']['plaintext'];
+ }
}
$res['isNewPage'] = $row->isFirstReply &&
$row->revision->isFirstRevision();
--
To view, visit https://gerrit.wikimedia.org/r/296426
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I93f55c384b9eb65a3eb0180352bb0ad720d99153
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: Sbisson <[email protected]>
Gerrit-Reviewer: Catrope <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits