From de1c6a05dc31cc6a84c281f4a24364e38c53e535 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Fri, 16 Aug 2024 13:14:56 -0500 Subject: [PATCH] Add `domain` to Account entity --- src/entities/MastodonAccount.ts | 1 + src/views/mastodon/accounts.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/entities/MastodonAccount.ts b/src/entities/MastodonAccount.ts index 3a6c5be5..d0514185 100644 --- a/src/entities/MastodonAccount.ts +++ b/src/entities/MastodonAccount.ts @@ -43,6 +43,7 @@ export interface MastodonAccount { accepts_zaps: boolean; external_url: string; }; + domain?: string; pleroma: { deactivated: boolean; favicon?: string; diff --git a/src/views/mastodon/accounts.ts b/src/views/mastodon/accounts.ts index dca58302..2a7c6b25 100644 --- a/src/views/mastodon/accounts.ts +++ b/src/views/mastodon/accounts.ts @@ -86,6 +86,7 @@ async function renderAccount( accepts_zaps: Boolean(getLnurl({ lud06, lud16 })), external_url: Conf.external(npub), }, + domain: parsed05?.domain, pleroma: { deactivated: names.has('disabled'), is_admin: names.has('admin'),