From 6ba4e967d5dfb5d3c7bb97a0f2662f3180595563 Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Thu, 19 Mar 2026 15:17:38 -0500 Subject: feat: implement support for projects, lists, and pastes --- Hutch/Extensions/SRHTWebURL.swift | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Hutch/Extensions/SRHTWebURL.swift') diff --git a/Hutch/Extensions/SRHTWebURL.swift b/Hutch/Extensions/SRHTWebURL.swift index f63352b..35d250d 100644 --- a/Hutch/Extensions/SRHTWebURL.swift +++ b/Hutch/Extensions/SRHTWebURL.swift @@ -76,6 +76,14 @@ enum SRHTWebURL { ) } + static func paste(ownerCanonicalName: String, pasteId: String) -> URL? { + userScopedURL( + host: "paste.sr.ht", + ownerCanonicalName: ownerCanonicalName, + pathComponents: [pasteId] + ) + } + private static func userScopedURL( host: String, ownerCanonicalName: String, -- cgit v1.2.3