This took a while to debug, but when you try to get a post from a user without any text (i.e. someone just posts an image without any text) line 131 in models/post.py: message = f"{self.message[:30]}..." throws an error.
You can fix it by having it just print out the ids or checking to see if message is empty before trying to slice it
This took a while to debug, but when you try to get a post from a user without any text (i.e. someone just posts an image without any text) line 131 in models/post.py: message = f"{self.message[:30]}..." throws an error.
You can fix it by having it just print out the ids or checking to see if message is empty before trying to slice it