π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Trim public albums quick-link vendor copy
Anand Baburajan083e2e9bcef9
diff --git a/web/apps/albums/vendor/photos/utils/quick-link.ts b/web/apps/albums/vendor/photos/utils/quick-link.tsindex 307ceb8541..15128ac288 100644--- a/web/apps/albums/vendor/photos/utils/quick-link.ts+++ b/web/apps/albums/vendor/photos/utils/quick-link.ts@@ -1,4 +1,3 @@-import { appendCollectionKeyToShareURL } from "ente-gallery/services/share";import type { EnteFile } from "ente-media/file";import { fileCreationTime } from "ente-media/file-metadata";@@ -21,7 +20,7 @@ const shortMonths = [/*** Date-range formatting used by quick-link naming (kept in mobile parity).*/-export const quickLinkDateRangeForCreationTimes = (+const quickLinkDateRangeForCreationTimes = (firstCreationTime: number,secondCreationTime: number,) => {@@ -53,26 +52,3 @@ export const quickLinkDateRangeForFiles = (files: EnteFile[]) => {return quickLinkDateRangeForCreationTimes(minCreationTime, maxCreationTime);};--export const quickLinkNameForFiles = (files: EnteFile[]) =>- quickLinkDateRangeForFiles(files) ?? "Quick link";--const substituteCustomDomainIfNeeded = (- url: string,- customDomain: string | undefined,-) => {- if (!customDomain) return url;- const u = new URL(url);- u.host = customDomain;- return u.href;-};--export const resolveQuickLinkURL = async (- publicURL: string,- collectionKey: string,- customDomain: string | undefined,-) =>- substituteCustomDomainIfNeeded(- await appendCollectionKeyToShareURL(publicURL, collectionKey),- customDomain,- );