refactor(msteams,bluebubbles): dedupe inbound media download helpers

This commit is contained in:
Peter Steinberger
2026-02-21 23:08:07 +01:00
parent 73d93dee64
commit 61dc7ac679
7 changed files with 99 additions and 79 deletions

View File

@@ -0,0 +1,12 @@
export function resolveRequestUrl(input: RequestInfo | URL): string {
if (typeof input === "string") {
return input;
}
if (input instanceof URL) {
return input.toString();
}
if (typeof input === "object" && input && "url" in input && typeof input.url === "string") {
return input.url;
}
return String(input);
}