Skip to content

Instantly share code, notes, and snippets.

@myshkin
myshkin / gist:5bfb2f5e795bc2cf2146
Created April 12, 2015 19:58
ttytter diff to expand tweets referring to other tweets or containing multiple images
--- ttytter.2.1.0.FCS 2015-04-11 16:17:32.000000000 -0700
+++ ttytter 2015-04-12 10:51:29.000000000 -0700
@@ -2837,7 +2837,7 @@
my $didprint = 0;
# Twitter puts entities in multiple fields.
foreach $w (qw(media urls)) {
- my $p = $hash->{'entities'}->{$w};
+ my $p = $hash->{'extended_entities'}->{$w};
next if (!defined($p) || ref($p) ne 'ARRAY');
foreach $v (@{ $p }) {
Bay Rare
Bay Rates
Bike Maxes
Bad Check
Bay Jell
Berry Jell
Bosh Jell
Berry Tell
Blob Back
Bled Frank