If a user creates a post without an img the file url is undefined. #26
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Extra attention is needed
See screenshot.
When a post is auto-generated the file_url is empty or null. This is how it should be for a post without an image.
If a user uploads a post without an image the file_url in the database becomes
localhost:5000/media/posts/undefined/
even tho the file_url should be empty.The text was updated successfully, but these errors were encountered: