SAN FRANCISCO — Twitter CEO Jack Dorsey's account has gotten hacked, and whoever broke in sent racist and vulgar tweets to his 4.2 million followers.

Some of the tweets were up for about 30 minutes before Twitter took them down.

The tweets included messages such as "Hitler is innocent" and, using a vulgarity, asked "bald skeleton head," referring to Dorsey, to unsuspend certain accounts.

Twitter says it's investigating. The company suspended accounts that the hacker or hackers retweeted while they had control of Dorsey's account.

The incident comes as Twitter and Dorsey have promised to improve the "health" and civility of discourse on the social media service, cracking down on hate speech and abuse.

RELATED: Twitter bans 'dehumanizing' posts toward religious groups

RELATED: Trump meets with Twitter CEO amid bias complaints

RELATED: In just seconds, hackers can take total control of your devices

RELATED: Square's move downtown could be first step to a new 'innovation district'

Twitter CEO Jack Dorsey testifies on Capitol Hill in Washington 2018 AP
FILE - In this Sept. 5, 2018, file photo, Twitter CEO Jack Dorsey testifies on Capitol Hill in Washington
AP

RELATED: Farve coming out of retirement? NFL legend makes shocking announcement on Instagram, then deletes it

RELATED: Jake Fromm, Justin Fields claim their Instagram accounts were hacked on the same day