mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-27 09:10:12 +00:00
DiscussionParser: Do not create User objects from subpages
Bug: T375212 Change-Id: Id409a4f9adcda840400e529db72eb696ec55b3f4
This commit is contained in:
parent
2eb264770b
commit
fb71ab10cb
|
@ -1088,8 +1088,9 @@ abstract class DiscussionParser {
|
|||
|
||||
// figure out if the link is related to a user
|
||||
if (
|
||||
$title &&
|
||||
( $title->getNamespace() === NS_USER || $title->getNamespace() === NS_USER_TALK )
|
||||
$title
|
||||
&& ( $title->getNamespace() === NS_USER || $title->getNamespace() === NS_USER_TALK )
|
||||
&& !$title->isSubpage()
|
||||
) {
|
||||
$usernames[] = $title->getText();
|
||||
} elseif ( $title && $title->isSpecial( 'Contributions' ) ) {
|
||||
|
|
Loading…
Reference in a new issue