mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Fix toot action for #638
This commit is contained in:
@ -38,7 +38,7 @@ const TimelineActioned: React.FC<Props> = ({ action, isNotification, ...rest })
|
||||
)
|
||||
|
||||
const onPress = () =>
|
||||
navigation.push('Tab-Shared-Account', { account, isRemote: status?._remote })
|
||||
navigation.push('Tab-Shared-Account', { account })
|
||||
|
||||
const children = () => {
|
||||
switch (action) {
|
||||
|
@ -114,7 +114,8 @@ const TimelineActions: React.FC = () => {
|
||||
status,
|
||||
payload: {
|
||||
type: 'reblogged',
|
||||
visibility: 'public'
|
||||
visibility: 'public',
|
||||
to: true
|
||||
}
|
||||
})
|
||||
break
|
||||
@ -126,7 +127,8 @@ const TimelineActions: React.FC = () => {
|
||||
status,
|
||||
payload: {
|
||||
type: 'reblogged',
|
||||
visibility: 'unlisted'
|
||||
visibility: 'unlisted',
|
||||
to: true
|
||||
}
|
||||
})
|
||||
break
|
||||
@ -141,7 +143,8 @@ const TimelineActions: React.FC = () => {
|
||||
status,
|
||||
payload: {
|
||||
type: 'reblogged',
|
||||
visibility: 'public'
|
||||
visibility: 'public',
|
||||
to: false
|
||||
}
|
||||
})
|
||||
}
|
||||
@ -153,7 +156,8 @@ const TimelineActions: React.FC = () => {
|
||||
rootQueryKey,
|
||||
status,
|
||||
payload: {
|
||||
type: 'favourited'
|
||||
type: 'favourited',
|
||||
to: !status.favourited
|
||||
}
|
||||
})
|
||||
}
|
||||
@ -164,7 +168,8 @@ const TimelineActions: React.FC = () => {
|
||||
rootQueryKey,
|
||||
status,
|
||||
payload: {
|
||||
type: 'bookmarked'
|
||||
type: 'bookmarked',
|
||||
to: !status.bookmarked
|
||||
}
|
||||
})
|
||||
}
|
||||
|
@ -32,7 +32,7 @@ const TimelineAvatar: React.FC<Props> = ({ account }) => {
|
||||
})}
|
||||
onPress={() =>
|
||||
!disableOnPress &&
|
||||
navigation.push('Tab-Shared-Account', { account: actualAccount, isRemote: status?._remote })
|
||||
navigation.push('Tab-Shared-Account', { account: actualAccount })
|
||||
}
|
||||
uri={{ original: actualAccount.avatar, static: actualAccount.avatar_static }}
|
||||
dimension={
|
||||
|
@ -86,7 +86,8 @@ const TimelineCard: React.FC = () => {
|
||||
}, [])
|
||||
|
||||
const accountQuery = useAccountQuery({
|
||||
id: isAccount?.style === 'default' ? isAccount.id : '',
|
||||
account:
|
||||
isAccount?.style === 'default' ? { id: isAccount.id, url: status.card.url } : undefined,
|
||||
options: { enabled: false }
|
||||
})
|
||||
useEffect(() => {
|
||||
|
Reference in New Issue
Block a user