diff options
author | Daniel Friesel <derf@finalrewind.org> | 2022-07-09 23:10:56 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2022-07-09 23:10:56 +0200 |
commit | a88dea059bf92481556d2469ef157e545a3bb180 (patch) | |
tree | 76ccb55a9a7af85b86b212a4ca0040395dcafaf3 /lib | |
parent | 40ff05aefe298c862bac9d474474fff0a475d0eb (diff) |
Traewelling Pull: Only fetch most recent status
This feature was recently added to Traewelling and should improve
efficiency on all sides.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Travelynx/Helper/Traewelling.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Travelynx/Helper/Traewelling.pm b/lib/Travelynx/Helper/Traewelling.pm index bd0aa45..4d6c180 100644 --- a/lib/Travelynx/Helper/Traewelling.pm +++ b/lib/Travelynx/Helper/Traewelling.pm @@ -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 ) { |