summaryrefslogtreecommitdiff
path: root/views/new-post.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/new-post.php')
-rw-r--r--views/new-post.php13
1 files changed, 1 insertions, 12 deletions
diff --git a/views/new-post.php b/views/new-post.php
index ea8eb78..2190752 100644
--- a/views/new-post.php
+++ b/views/new-post.php
@@ -622,7 +622,7 @@ $(function(){
$("#note_content").on('change keyup', function(e){
var text = $("#note_content").val();
var tweet_length = tw_text_proxy(text).length;
- var tweet_check = tw_length_check(text, 280, "<?= $this->user->twitter_username ?>");
+ var tweet_check = tw_length_check(text, 280, "");
var remaining = 280 - tweet_length;
$("#note_content_remaining span").text(remaining);
$("#note_content_remaining").removeClass("pcheck200 pcheck206 pcheck207 pcheck208 pcheck413");
@@ -683,17 +683,6 @@ $(function(){
// }
// $("#note_category").val(category.join(", "));
- /*
- // stop auto-populating usernames in replies, since Twitter no longer requires it
- if($("#note_content").val() == "" && data.mentions) {
- var mentions = '';
- for(var i in data.mentions) {
- mentions += '@'+data.mentions[i]+' ';
- }
- $("#note_content").val(mentions);
- }
- */
-
if(data.entry) {
$(".reply-context .content").text(data.entry.content.text);
if(data.entry.name) {