Skip to content

Commit

Permalink
style: Remove link to user's talk page in the signature line
Browse files Browse the repository at this point in the history
  • Loading branch information
it-spiderman committed Jan 26, 2022
1 parent 0a87a0a commit d75e297
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions includes/Content/SignatureContent.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,13 @@ private function getSignatureLine( array $signature ) {
}
$linker = MediaWikiServices::getInstance()->getLinkRenderer();
$line = $linker->makeLink( $user->getUserPage(), $user->getName() );
$line .= "({$linker->makeLink( $user->getTalkPage(), 'talk' )}) ";

$language = \RequestContext::getMain()->getLanguage();
$viewingUser = \RequestContext::getMain()->getUser();
$line .= $language->userTimeAndDate( $signature['timestamp'], $viewingUser );
$line .= Html::rawElement( 'span', [
'class' => 'badge badge-light',
'style' => 'margin-left: 10px',
], $language->userTimeAndDate( $signature['timestamp'], $viewingUser ) );

return Html::rawElement( 'span', [ 'class' => 'da-signature-line' ], $line );
}
Expand Down

0 comments on commit d75e297

Please sign in to comment.