EBernhardson has uploaded a new change for review.

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

Change subject: Kill auto-mention in favor of subscriptions
......................................................................

Kill auto-mention in favor of subscriptions

Change-Id: Id5eb62c0471f5a0c8e0723558c7700e263cfdf5e
---
M modules/new/components/flow-board.js
1 file changed, 2 insertions(+), 9 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Flow 
refs/changes/67/156467/1

diff --git a/modules/new/components/flow-board.js 
b/modules/new/components/flow-board.js
index bea39a2..0baec97 100644
--- a/modules/new/components/flow-board.js
+++ b/modules/new/components/flow-board.js
@@ -1543,20 +1543,13 @@
                                topicTitle = $post.closest( '.flow-topic' 
).find( '.flow-topic-title' ).text(),
                                replyToContent = $post.find( 
'.flow-post-content' ).text() || topicTitle,
                                author = $.trim( $post.find( 
'.flow-author:first .mw-userlink' ).text() ),
-                               initialContent, $form;
+                               $form;
 
                        // Check if reply form has already been opened
                        if ( $post.data( 'flow-replying' ) ) {
                                return;
                        }
                        $post.data( 'flow-replying', true );
-
-                       // if we have a real username, turn it into "[[User]]" 
(otherwise, just "127.0.0.1")
-                       if ( !mw.util.isIPv4Address( author , true ) && 
!mw.util.isIPv6Address( author , true ) ) {
-                               initialContent = '[[' + mw.Title.newFromText( 
author, 2 ).getPrefixedText() + '|' + author + ']]: ';
-                       } else {
-                               initialContent = author + ': ';
-                       }
 
                        $form = $( 
flowBoard.TemplateEngine.processTemplateGetFragment(
                                'flow_reply_form',
@@ -1580,7 +1573,7 @@
                                        submitted: {
                                                postId: postId,
                                                // prefill content
-                                               content: initialContent
+                                               content: ''
                                        }
                                }
                        ) ).children();

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id5eb62c0471f5a0c8e0723558c7700e263cfdf5e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: EBernhardson <[email protected]>

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

Reply via email to