@troynt's Twitter Script

By Troy Thompson Last update Aug 6, 2010 — Installed 147,397 times.

Retweet not working right

in
Subscribe to Retweet not working right 7 posts, 3 voices



b.q Scriptwright

Dont know if this was still a problem in the previous version of the script, but just updated after having installed the script a few days ago...

The problem is with the RT button. Status updates fine, but the RTs are not 'in reply to' who ever I was retweeting.

The RT link seems to be fine, it has '&in_reply_to_status_id=...' and '&in_reply_to=...' ... not quite sure what it is.

Anyone else having this issue?

FF3.0.10, winXP

 
Troy Thompson Script's Author

Yes, I noticed this too. It bothers me as well. I think this is a change in the Twitter API, because like you said it is generating the correct link and popuplating the hidden form fields like it is supposed to.

 
b.q Scriptwright

OH, i've noticed that if you take out the 'RT ' before the @username, it properly replys to the status update that you are retweeting ...

 
Karolis Pocius User

Yeah, that's because if you remove RT ir becomes a simple reply. Actually I don't see how RT should be a reply. RT is RT period. The author can see your retweet in mentions tab anyway.

 
b.q Scriptwright
FirefoxWindows

The retweet should be set in the following: @username RT: blah blah ... not RT @username blah ... in order for RTs to be replys.

And it might not be about the author, but a reader following a thread of tweets. Maybe I want to find out which status was in reply to which etc. It just feels more logical to have RT's linked.

 
b.q Scriptwright
FirefoxWindows

Only takes small edits:

tweet_add_retweet_button:function($tweet)
{
if( !tnt_twitter.can('add_retweet_button') ) return;

$reply_btn = $tweet.find('.actions:first .reply:first');
if( $reply_btn.length != 1 ) return;

$retweet_btn = $reply_btn.clone();
$retweet_btn.attr('title','retweet this').removeClass('reply').text('RT')
.css({
background:'#C3C3C3',
color:'#fff',
padding:'2px',
display:'inline'
});

var user = tnt_twitter.user_from_tweet($tweet);

var link = $retweet_btn.attr('href');
link = link.split('&')
var content = $tweet.find('.entry-content:first,.msgtxt:first').text();
link[0] = '/home?status='+encodeURIComponent('@'+user+' RT: '+ content.replace("\n",'','g') )
link = link.join('&');
$retweet_btn.attr('href',link);
$reply_btn.after($retweet_btn);

var $s = $('#status');
if( $s.length == 1 && $s.is(':visible') )
$retweet_btn.click(function(){
var $s = $('#status');
$s.val('');
$(this).siblings('.reply:first').trigger('click');
$s.val($s.val() + 'RT: ' + content);
$s.blur().focus();
return false;
});
},

 
Troy Thompson Script's Author
FirefoxWindows

Well the point of a RT is to spread the word, users can't see @replies due to the change in the Twitter system. I agree though the threading is nice.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel