From 478440be081b8ecefd80d957bc86972037381ae7 Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Sat, 19 Jun 2021 17:27:22 -0600 Subject: [PATCH] Show latest event in history for USPS tracking --- lib/Tracking_USPS.lib.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Tracking_USPS.lib.php b/lib/Tracking_USPS.lib.php index 2b80385..4667fb5 100644 --- a/lib/Tracking_USPS.lib.php +++ b/lib/Tracking_USPS.lib.php @@ -72,6 +72,8 @@ class Tracking_USPS { $current_status->setLocation($current_location); $info->setCurrentStatus($current_status); + // USPS doesn't put the latest entry in the history + $info->appendHistoryEntry($current_status); $from = new Location(); $from->city = (string) $trackinfo->OriginCity ?? "";