Add proper error handling for when the post exceeds character limits