Merge consecutive post ids