1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Try to fix #16

This commit is contained in:
Zhiyuan Zheng
2021-02-13 01:26:02 +01:00
parent d2aec8d590
commit 4c8003b533
16 changed files with 195 additions and 51 deletions

View File

@ -17,6 +17,7 @@ import { useQueryClient } from 'react-query'
export interface Props {
queryKey: QueryKeyTimeline
rootQueryKey?: QueryKeyTimeline
status: Mastodon.Status
accts: Mastodon.Account['acct'][] // When replying to conversations
reblog: boolean
@ -24,6 +25,7 @@ export interface Props {
const TimelineActions: React.FC<Props> = ({
queryKey,
rootQueryKey,
status,
accts,
reblog
@ -120,6 +122,7 @@ const TimelineActions: React.FC<Props> = ({
mutation.mutate({
type: 'updateStatusProperty',
queryKey,
rootQueryKey,
id: status.id,
reblog,
payload: {
@ -139,6 +142,7 @@ const TimelineActions: React.FC<Props> = ({
mutation.mutate({
type: 'updateStatusProperty',
queryKey,
rootQueryKey,
id: status.id,
reblog,
payload: {
@ -157,6 +161,7 @@ const TimelineActions: React.FC<Props> = ({
mutation.mutate({
type: 'updateStatusProperty',
queryKey,
rootQueryKey,
id: status.id,
reblog,
payload: {