summaryrefslogtreecommitdiff
path: root/Hutch/Extensions/SRHTWebURL.swift
diff options
context:
space:
mode:
Diffstat (limited to 'Hutch/Extensions/SRHTWebURL.swift')
-rw-r--r--Hutch/Extensions/SRHTWebURL.swift8
1 files changed, 8 insertions, 0 deletions
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,