Skip to content

Commit

Permalink
Fixed: "since" synthetic arg with InflateObjects role (RT#54901)
Browse files Browse the repository at this point in the history
  • Loading branch information
semifor committed Feb 23, 2010
1 parent 31ca4d6 commit 0f8676a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Changes
@@ -1,3 +1,4 @@
- Fixed: "since" synthetic arg with InflateObjects role (RT#54901)
- Fixed: utf8 encoding error for latin1 using Basic Authentication
- Allow a pre-created user agent object as argument to new (ua => $ua)
- FAQ: How do I get Twitter to display something other than "from Perl Net::Twitter"?
Expand Down
2 changes: 1 addition & 1 deletion lib/Net/Twitter/Core.pm
Expand Up @@ -255,7 +255,7 @@ sub _contains_statuses {
my ($self, $arrayref) = @_;

my $e = $arrayref->[0] || return;
return unless ref $e eq 'HASH';
return unless ref $e && reftype $e eq 'HASH';
return exists $e->{created_at} && exists $e->{text} && exists $e->{id};
}

Expand Down
2 changes: 1 addition & 1 deletion t/51_since.t
Expand Up @@ -11,7 +11,7 @@ plan skip_all => 'LWP::UserAgent 5.819 required' if $@;

use_ok 'Net::Twitter';

my $nt = Net::Twitter->new(traits => [qw/API::REST API::Search/]);
my $nt = Net::Twitter->new(traits => [qw/API::REST API::Search RateLimit InflateObjects/]);

my $datetime_parser = do {
no warnings 'once';
Expand Down

0 comments on commit 0f8676a

Please sign in to comment.