mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Fix public domain and API domain differ
This commit is contained in:
@ -15,7 +15,7 @@ interface Props {
|
||||
const AccountButton: React.FC<Props> = ({ account, selected = false, additionalActions }) => {
|
||||
const navigation = useNavigation()
|
||||
const accountDetails = getAccountDetails(
|
||||
['auth.account.acct', 'auth.domain', 'auth.account.id'],
|
||||
['auth.domain', 'auth.account.acct', 'auth.account.domain', 'auth.account.id'],
|
||||
account
|
||||
)
|
||||
if (!accountDetails) return null
|
||||
@ -28,7 +28,7 @@ const AccountButton: React.FC<Props> = ({ account, selected = false, additionalA
|
||||
marginBottom: StyleConstants.Spacing.M,
|
||||
marginRight: StyleConstants.Spacing.M
|
||||
}}
|
||||
content={`@${accountDetails['auth.account.acct']}@${accountDetails['auth.domain']}${
|
||||
content={`@${accountDetails['auth.account.acct']}@${accountDetails['auth.account.domain']}${
|
||||
selected ? ' ✓' : ''
|
||||
}`}
|
||||
onPress={() => {
|
||||
|
@ -123,6 +123,8 @@ const ComponentInstance: React.FC<Props> = ({
|
||||
'auth.domain': domain,
|
||||
'auth.account.id': id,
|
||||
'auth.account.acct': acct,
|
||||
// @ts-ignore
|
||||
'auth.account.domain': instanceQuery.data?.domain || instanceQuery.data?.uri,
|
||||
'auth.account.avatar_static': avatar_static,
|
||||
version: instanceQuery.data?.version || '0',
|
||||
preferences: undefined,
|
||||
|
Reference in New Issue
Block a user