Improved logic for re-syncing posts