[Glitch] Updates Wrapstodon footer with dedicated local server info

Port e6b0cdcc83 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
diondiondion
2025-12-16 16:35:26 +01:00
committed by Claire
parent fbacb5ae7a
commit cfc64a2ea9
4 changed files with 74 additions and 37 deletions

View File

@@ -25,7 +25,7 @@ function loaded() {
const initialState = JSON.parse(
propsNode.textContent,
) as ApiAnnualReportResponse & { me?: string };
) as ApiAnnualReportResponse & { me?: string; domain: string };
const report = initialState.annual_reports[0];
if (!report) {
@@ -38,6 +38,7 @@ function loaded() {
meta: {
locale: document.documentElement.lang,
me: initialState.me,
domain: initialState.domain,
},
accounts: initialState.accounts,
}),