Pinterest reported first-quarter results and gave revenue guidance that was “worthy of a Friday rally.”