Merge branch 'is-local' into 'main'

renderAccount: add pleroma.is_local parameter

See merge request soapbox-pub/ditto!139
This commit is contained in:
Alex Gleason 2024-04-07 02:27:00 +00:00
commit bff7667298
1 changed files with 1 additions and 0 deletions

View File

@ -76,6 +76,7 @@ async function renderAccount(
pleroma: { pleroma: {
is_admin: role === 'admin', is_admin: role === 'admin',
is_moderator: ['admin', 'moderator'].includes(role), is_moderator: ['admin', 'moderator'].includes(role),
is_local: parsed05?.domain === Conf.url.host,
}, },
nostr: { nostr: {
pubkey, pubkey,