Skip to content

best way to save what you love

api/url: return friendly name in unsupported link error

wukkoc71ed596608e
diff --git a/api/src/processing/url.js b/api/src/processing/url.js
index 4bb4d053..a8e69937 100644
--- a/api/src/processing/url.js
+++ b/api/src/processing/url.js
@@ -3,6 +3,7 @@ import { strict as assert } from "node:assert";
import { env } from "../config.js";
import { services } from "./service-config.js";
+import { friendlyServiceName } from "./service-alias.js";
function aliasURL(url) {
assert(url instanceof URL);
@@ -186,7 +187,7 @@ export function extract(url) {
return {
error: "link.unsupported",
context: {
- service: host
+ service: friendlyServiceName(host),
}
};
}