From c71ed596608ef188a2c2799c09d6ad4d10a960c8 Mon Sep 17 00:00:00 2001
From: wukko <me@wukko.me>
Date: Sun, 1 Sep 2024 15:51:35 +0600
Subject: [PATCH] api/url: return friendly name in unsupported link error

---
 api/src/processing/url.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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),
             }
         };
     }