Traewelling Pull: Only fetch most recent status
This feature was recently added to Traewelling and should improve efficiency on all sides.
This commit is contained in:
parent
40ff05aefe
commit
a88dea059b
1 changed files with 2 additions and 2 deletions
|
@ -76,8 +76,8 @@ sub get_status_p {
|
|||
|
||||
$self->{user_agent}->request_timeout(20)
|
||||
->get_p(
|
||||
"https://traewelling.de/api/v1/user/${username}/statuses" => $header )
|
||||
->then(
|
||||
"https://traewelling.de/api/v1/user/${username}/statuses?limit=1" =>
|
||||
$header )->then(
|
||||
sub {
|
||||
my ($tx) = @_;
|
||||
if ( my $err = $tx->error ) {
|
||||
|
|
Loading…
Reference in a new issue