fix user refresh

This commit is contained in:
john 2025-05-20 23:43:43 +02:00
parent 0b2a64e449
commit cc3d138fd3
6 changed files with 6 additions and 13 deletions

View file

@ -52,7 +52,7 @@ export default function HomePage({ postsService, mediaService }: HomePageProps)
}
}),
)
const postId = await postsService.createNew(user.userId, content, media, isPublic)
const postId = await postsService.createNew(user.id, content, media, isPublic)
const post = new Post(postId, content, media, Temporal.Now.instant(), user.username)
setPages((pages) => [[post], ...pages])
} catch (error) {