More or less verbatim copied from the outbox template with only changes to the activities fetched and url reported