List Widget: How do I hide retweets? or at list indicate a RT is a RT?

thornbrook
@thornbrook Tim Hornbrook

Hi,

I've setup a list on a twitter account for a client, with a list of selected accounts they want to show tweets from on their website.
I used the Twitter List widget to pull in these tweets, but noticed that whenever one of the listed accounts retweets someone else - that tweet appears in the widget - with NO indication that it is a retweet.

The retweet appears as if that user is on the list.

How can I either:

a) ignore retweets in a list completely
b) ignore retweets in the list widget
c) indicate in the widget that a tweet is a retweet

2 years 32 weeks ago

Replies

carlos3lopez
@carlos3lopez Carlitos Ohh Shit !

android necesita un widget mejor al estilo de el de HTC mas grande y practico

2 years 32 weeks ago
xatobo
@xatobo Xavi Torrabadella

@thornbrook i have the same problem :(

2 years 30 weeks ago
episod
@episod Taylor Singletary

We'll resolve this on our end in the coming weeks by disincluding retweets from list widgets. Long-term, we'd like to make this configurable and visually distinctive. For now, you'll just have to wait for us to resolve it or override the lists javascript to not include include_rts=true when calling the Lists API end point.

There's a bit of code in there like:

  1.           else if (this._isFavsWidget || this._isListWidget) {
  2.             this.url = this._base + this.format + '?callback=' + this._cb + showSince() +
  3.                        '&include_rts=true' +
  4.                        '&clientsource=' + this.source;
  5.           }

That just needs one bit removed or commented out:

  1.           else if (this._isFavsWidget || this._isListWidget) {
  2.             this.url = this._base + this.format + '?callback=' + this._cb + showSince() +
  3. //                       '&include_rts=true' +
  4.                        '&clientsource=' + this.source;
  5.           }
2 years 30 weeks ago
EquinoxTweets
@EquinoxTweets Equinox Tweets

It looks like the retweets have been disincluded from list widgets.
Is there a way i can include it now.
Is it configurable as mentioned above.

2 years 4 weeks ago
rpaskin
@rpaskin Ronnie Paskin

Taylor, how would I go about overriding that parameter? I'm simply using the list widget, as in:

new TWTR.Widget (...).render().setList(...).start();

Do I break out the start() method and insert some code in between?

thanks!

2 years 30 weeks ago
episod
@episod Taylor Singletary

The best bet would be to download the widgets.js file you're linking to already and put an edited version on your webserver, including that instead for this temporary period of time.

The widgets.js file would be a compressed version, but if you searched for this same bit of code, you should be able to find the include_rts=true part -- then you could just remove the bit of code here " '&include_rts=true' + "

I'll see if I can hurry up the better fix.

2 years 30 weeks ago
rpaskin
@rpaskin Ronnie Paskin

Thanks, Taylor, I appreciate the work.

As a side note, do you guys have any plans to implement these widgets so that they can instantiate in predefined DOM containers instead of where the script is dropped? I'd very much prefer to be able to progressively enhance the page with a Twitter widget after DOM ready, instead of having to wait for that script to run inline.

Just curious if there's any plan to go in that direction. I feel it would be a little better for non-beginners wanting to add the widgets to big corporate sites (i.e. me ;-) )

2 years 30 weeks ago
episod
@episod Taylor Singletary

The widgets will probably get some modern love at some point but I don't have anything to announce right now. They are admittedly showing their age a bit.

2 years 4 weeks ago
RealFriscoKid
@RealFriscoKid M. Jennings

I followed Taylor's suggestion and it works, Thanks. Just make sure you use https://widgets.twimg.com/j/2/widget.js

1 year 45 weeks ago
RealFriscoKid
@RealFriscoKid M. Jennings

Fine tuned it and now it works perfect. Also this works with Search, Profile and List Twitter Widgets

(By way of explanation "col1" is the DIV around the Twitter widget).

  1.   twttr.anywhere(function(T) {  T("#col1 a.tweet-url.username").hovercards();}) 
  2.   twttr.anywhere(function(T) {  T("#col1 a.tweet-url.username").hovercards({ infer:true}); });
  3.   twttr.anywhere(function(T) {  T("#col1 a.tweet-url.username").hovercards({ linkify:false}); });
1 year 45 weeks ago