about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--companion-lite/src/indieauth.ts4
-rw-r--r--src/login.rs2
-rw-r--r--templates/src/templates.rs2
3 files changed, 4 insertions, 4 deletions
diff --git a/companion-lite/src/indieauth.ts b/companion-lite/src/indieauth.ts
index 31854ee..98132e3 100644
--- a/companion-lite/src/indieauth.ts
+++ b/companion-lite/src/indieauth.ts
@@ -75,8 +75,8 @@ export async function discover_endpoints(me: URL): Promise<IndiewebEndpoints | n
   } else {
     return null
   }
-  if ("indieauth_metadata" in data.rels) {
-    const metadata_response = await fetch(data.rels.indieauth_metadata[0], {
+  if ("indieauth-metadata" in data.rels) {
+    const metadata_response = await fetch(data.rels["indieauth-metadata"][0], {
       headers: {
         "Accept": "application/json"
       }
diff --git a/src/login.rs b/src/login.rs
index fd8fe05..f1e2c81 100644
--- a/src/login.rs
+++ b/src/login.rs
@@ -124,7 +124,7 @@ async fn post(
     let mut authorization_endpoint = match body
         .rels
         .by_rels()
-        .get("indieauth_metadata")
+        .get("indieauth-metadata")
         .map(|v| v.as_slice())
         .unwrap_or_default()
         .first()
diff --git a/templates/src/templates.rs b/templates/src/templates.rs
index 0f55927..9b29fce 100644
--- a/templates/src/templates.rs
+++ b/templates/src/templates.rs
@@ -14,7 +14,7 @@ markup::define! {
 
                 link[rel="micropub", href="/.kittybox/micropub"];
                 link[rel="micropub_media", href="/.kittybox/media"];
-                link[rel="indieauth_metadata", href="/.kittybox/indieauth/metadata"];
+                link[rel="indieauth-metadata", href="/.kittybox/indieauth/metadata"];
                 link[rel="webmention", href="/.kittybox/webmention"];
                 // legacy links for some dumb clients
                 link[rel="authorization_endpoint", href="/.kittybox/indieauth/auth"];