This commit is contained in:
john 2025-05-17 23:18:37 +02:00
parent 313f1def49
commit 36f5eef849
12 changed files with 39 additions and 23 deletions

View file

@ -16,7 +16,7 @@ interface HomePageProps {
}
export default function HomePage({ postsService, mediaService }: HomePageProps) {
const [user] = useUser()
const { user } = useUser()
const [isSubmitting, setIsSubmitting] = useState(false)
@ -36,7 +36,6 @@ export default function HomePage({ postsService, mediaService }: HomePageProps)
try {
const media = await Promise.all(
files.map(async ({ file, width, height }) => {
console.debug('do mediaService.uploadFile', file, 'width', width, 'height', height)
const { mediaId, url } = await mediaService.uploadFile(file)
return {

View file

@ -23,7 +23,6 @@ export class Post {
}
public static fromDto(dto: components['schemas']['PublicPostDto']): Post {
console.debug('make post', dto)
return new Post(
dto.postId,
dto.content,