Merge "Treat user talk subpages like normal talk pages in empty state text"

This commit is contained in:
jenkins-bot 2022-01-12 17:04:21 +00:00 committed by Gerrit Code Review
commit 6c5461d858

View file

@ -260,7 +260,7 @@ class PageHooks implements
$descParams = [];
$buttonMsg = 'discussiontools-emptystate-button';
$title = $context->getTitle();
if ( $title->getNamespace() == NS_USER_TALK ) {
if ( $title->getNamespace() == NS_USER_TALK && !$title->isSubpage() ) {
// This is a user talk page
$isIP = $this->userNameUtils->isIP( $title->getText() );
if ( $title->equals( $output->getUser()->getTalkPage() ) ) {