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

This commit is contained in:
Trash Panda authored and Ellis Git committed 2026-03-09 13:27:39 +00:00
1 parent 9dbd75e740
commit e8746760fa
4 files changed
+213 -24

No files matched your search

+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.
///