diff --git a/modules/ext.thanks.thank.js b/modules/ext.thanks.thank.js index 5b87fa58..7a0b83bc 100644 --- a/modules/ext.thanks.thank.js +++ b/modules/ext.thanks.thank.js @@ -41,6 +41,9 @@ var confirmThanks = function( $thankLink ) { var recipient = $thankLink.parent().find( '.mw-userlink' ).text(); + if ( recipient === '' ) { // for Diff view + recipient = $thankLink.parents( '.diff-ntitle' ).find( '.mw-userlink' ).text(); + } var $dialog = $( '
' ).msg( 'thanks-confirmation', mw.user, recipient ); $dialog.dialog( { autoOpen: false,