fix : the actions don't update the status

This commit is contained in:
thislight 2024-11-08 23:17:01 +08:00
parent 17e738e21a
commit 29eaf1a02b
No known key found for this signature in database
GPG key ID: FCFE5192241CCD4E
5 changed files with 114 additions and 96 deletions
src/timelines

View file

@ -58,9 +58,10 @@ const TootBottomSheet: Component = (props) => {
},
);
const toot = () => catchError(remoteToot, (error) => {
console.error(error)
}) ?? getCache(acctText(), params.id);
const toot = () =>
catchError(remoteToot, (error) => {
console.error(error);
}) ?? getCache(acctText(), params.id);
createEffect((lastTootId?: string) => {
const tootId = toot()?.id;