The long read: Saudi Arabia’s investment in Twitter increased its influence in Silicon Valley while being used at home to shut down critics of the regime