Unverified Commit a88dea05 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Traewelling Pull: Only fetch most recent status

This feature was recently added to Traewelling and should improve
efficiency on all sides.
parent 40ff05ae
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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 ) {