From 735fc0cb6cfe8e3c0c87afd57105b0bbeb8f3d35 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Sun, 9 Nov 2025 14:04:07 +0100 Subject: [PATCH] Fix published date handling in Piped API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Clear the published string when a proper publishedAt date is extracted from uploadDate to prevent duplicate or inconsistent date display. Only fallback to string-based published date when no structured date is available. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- Model/Applications/PipedAPI.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Model/Applications/PipedAPI.swift b/Model/Applications/PipedAPI.swift index 8d77c438..001e6bbd 100644 --- a/Model/Applications/PipedAPI.swift +++ b/Model/Applications/PipedAPI.swift @@ -556,7 +556,8 @@ final class PipedAPI: Service, ObservableObject, VideosAPI { let formattedDate = dateFormatter.date(from: date) { publishedAt = formattedDate - } else { + published = "" + } else if published.isNil { published = (details["uploadedDate"] ?? details["uploadDate"])?.string ?? "" }