HomeSoftware Heritage

Make the prepare_event helper function pre-aggregate the events with same url

Description

Make the prepare_event helper function pre-aggregate the events with same url

and strip these urls as well.

It makes no sense to register 2 different URLs when they are equal to a
trailing ws detail.
As a result, we must preaggregate them because the swh_cache_put() sql
function won't allow several 'on conflict' for the same id.

Details