Sbisson has uploaded a new change for review.

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

Change subject: Mention notification: don't repeat the section title at the 
begining of the excerpt
......................................................................

Mention notification: don't repeat the section title at the begining of the 
excerpt

Bug: T134922
Change-Id: I731ed9a7fafa7964aca776c543a58f6c5692f89a
---
M includes/DiscussionParser.php
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Echo 
refs/changes/97/296397/1

diff --git a/includes/DiscussionParser.php b/includes/DiscussionParser.php
index 056fc14..571ed87 100644
--- a/includes/DiscussionParser.php
+++ b/includes/DiscussionParser.php
@@ -141,6 +141,7 @@
                if ( !$title ) {
                        return;
                }
+               $content = self::stripHeader( $content );
 
                $output = self::parseNonEditWikitext( $content, new Article( 
$title ) );
                $links = $output->getLinks();

-- 
To view, visit https://gerrit.wikimedia.org/r/296397
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I731ed9a7fafa7964aca776c543a58f6c5692f89a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Echo
Gerrit-Branch: master
Gerrit-Owner: Sbisson <[email protected]>

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

Reply via email to