Skip to main content

conduit_media_blocked

Function conduit_media_blocked 

Source
async fn conduit_media_blocked(
    blocklist: Option<&Arc<Map>>,
    key: &[u8],
) -> Result<bool>
Expand description

Whether a Conduit media entry was blocked by a moderator. Conduit keeps the file and refuses it only at read time (blocked_servername_mediaid); tuwunel has no per-media blocklist, so importing a blocked original would serve it again. The blocklist key is server_name 0xff media_id, the same bytes as the servernamemediaid_metadata key, so the entry’s raw key probes it directly. Only a clean miss imports; a hard read error aborts the import (like an unreachable source) rather than silently re-serving blocked media.