Social-media giant ByteDance mentioned the lawsuit in an internal disciplinary notice, which identified the intern by his surname.