From dee8528b5b4855e064388cf6addc0c1d05adf9e4 Mon Sep 17 00:00:00 2001 From: Ayo Date: Fri, 15 Sep 2023 00:38:01 +0200 Subject: [PATCH] use masto display_name --- src/pages/index.astro | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pages/index.astro b/src/pages/index.astro index 5e57324..66f1dc8 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -5,10 +5,12 @@ import Footer from "../components/Footer.astro"; const response = await fetch('https://social.ayco.io/api/v1/accounts/109547735999980313') let { + display_name, avatar, note } = await response.json(); +const [first_name, last_name] = display_name.split(' ') note = note.replace('ayco.io/gh/', '').replace('ayco.io/sh/', '') --- @@ -24,7 +26,7 @@ note = note.replace('ayco.io/gh/', '').replace('

- AyoAyco + {first_name}{last_name}