Skip to main content

merge_into_allowlists

Function merge_into_allowlists 

Source
pub fn merge_into_allowlists(
    allowlists: &mut Vec<SourceAllowlist>,
    user_hosts: &[UserExtensionHost],
)
Expand description

Merge a slice of UserExtensionHost into the oa-publisher entry of an existing allowlist vector.

Duplicates are de-duplicated against the existing redirect_hosts to keep the host list minimal and the future verified_by provenance count honest (review pass I9). If the vector contains no oa-publisher entry, one is created.

A no-op when user_hosts is empty.

The note field is intentionally dropped at the merge boundary — it remains on UserExtensionHost for S3b’s provenance plumbing to consume from the same parsed vector.