Twitter reports first-quarter revenue of $1.2bn days after agreeing to Musk buyout