diff --git a/views/new-post.php b/views/new-post.php index 7040308..a9fae60 100644 --- a/views/new-post.php +++ b/views/new-post.php @@ -37,7 +37,7 @@
-
140
+
280
@@ -222,7 +222,7 @@ .pcheck206 { color: #6ba15c; } /* tweet fits within the limit even after adding RT @username */ .pcheck207 { color: #c4b404; } /* danger zone, tweet will overflow when RT @username is added */ -.pcheck200,.pcheck208 { color: #59cb3a; } /* exactly fits 140 chars, both with or without RT */ +.pcheck200,.pcheck208 { color: #59cb3a; } /* exactly fits 280 chars, both with or without RT */ .pcheck413 { color: #a73b3b; } /* over max tweet length */ .reply-context { @@ -529,8 +529,8 @@ $(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, 140, "user->twitter_username ?>"); - var remaining = 140 - tweet_length; + var tweet_check = tw_length_check(text, 280, "user->twitter_username ?>"); + var remaining = 280 - tweet_length; $("#note_content_remaining span").html(remaining); $("#note_content_remaining").removeClass("pcheck200 pcheck206 pcheck207 pcheck208 pcheck413"); $("#note_content_remaining").addClass("pcheck"+tweet_check); @@ -568,6 +568,8 @@ $(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) { @@ -575,6 +577,7 @@ $(function(){ } $("#note_content").val(mentions); } + */ if(data.entry) { $(".reply-context .content").text(data.entry.content.text);