Twitter posts solid earnings ahead of the US elections