feat(url-preview): Optionally download audio/video files for url preview requests

This commit is contained in:
Trash Panda
2026-02-27 23:41:52 -07:00
committed by Ellis Git
parent 9dbd75e740
commit e8746760fa
4 changed files with 213 additions and 24 deletions
+5
View File
@@ -1735,6 +1735,11 @@ pub struct Config {
/// default: "continuwuity/<version> (bot; +https://continuwuity.org)"
pub url_preview_user_agent: Option<String>,
/// Determines whether audio and video files will be downloaded for URL
/// previews.
#[serde(default)]
pub url_preview_allow_audio_video: bool,
/// List of forbidden room aliases and room IDs as strings of regex
/// patterns.
///