alexichepura/lapa

images without EXIF, (incorrect un/published posts FIXED)

wxyer opened this issue · 2 comments

wxyer commented

when i run the admin project,appears two erros.
first is when i create a post when a slug ,but i click ths /post/{slug} link ,the page navigate 404 not found.
1
ErrorTemplate_Errors: [ NotFound, ]
other error is when i upload a image with jpg or png format,all failed, i get the console error information below.
2
ExifRead( NotFound( "PNG", ), )
whats wrong with me ,no code i edit.

@wxyer, thank you for these reports!

First error can be related to unpublished or publish date in future. Can you check please?

For the second error, it looks like I didn't handle images without EXIF.
https://github.com/alexichepura/lapa/blob/main/admin/src/image/image_convert.rs#L64
https://github.com/kamadak/exif-rs/blob/master/src/error.rs#L42
Going to fix this. Maybe today, maybe this week.

First one was incorrect comparison of published_at and "now" timestamps. fixed here b6a74ab