From: David ‘Bombe’ Roden Date: Tue, 7 Jun 2011 11:59:54 +0000 (+0200) Subject: Only add @Sone to reply text field if not replying to yourself. X-Git-Tag: 0.6.5^2~15 X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=84ffe125e715c7475997473cf477480ecbcc5d23 Only add @Sone to reply text field if not replying to yourself. --- diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index c9d51c4..60a6a0b 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -83,7 +83,9 @@ function addCommentLink(postId, author, element, insertAfterThisElement) { }); })(replyElement); textArea = replyElement.find("input.reply-input").focus().data("textarea"); - textArea.val(textArea.val() + "@sone://" + author + " "); + if (author != getCurrentSoneId()) { + textArea.val(textArea.val() + "@sone://" + author + " "); + } }); return commentElement; })(postId, author);