Skip to content

Instantly share code, notes, and snippets.

@mrvdb
Created March 28, 2013 14:09
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mrvdb/5263398 to your computer and use it in GitHub Desktop.
Save mrvdb/5263398 to your computer and use it in GitHub Desktop.
diff --git a/js/util.js b/js/util.js
index c228026..b6a6950 100644
--- a/js/util.js
+++ b/js/util.js
@@ -616,7 +616,9 @@ var SN = { // StatusNet
$('#content .notice_reply').live('click', function(e) {
e.preventDefault();
var notice = $(this).closest('li.notice');
- SN.U.NoticeInlineReplyTrigger(notice);
+ // @fixme: is this the proper way to get the nick?
+ var replyNick = '@' + $(notice).find('.vcard.author a.url').attr('title');
+ SN.U.NoticeInlineReplyTrigger(notice, replyNick);
return false;
});
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment