Automatically generate modal IDs for posts

This way, users won't have to worry about whether the modal ID they come up with is unique or not.