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
+4
View File
@@ -142,6 +142,10 @@ impl Service {
self.server.config.url_preview_check_root_domain
}
pub fn url_preview_allow_audio_video(&self) -> bool {
self.server.config.url_preview_allow_audio_video
}
pub fn forbidden_alias_names(&self) -> &RegexSet { &self.server.config.forbidden_alias_names }
pub fn forbidden_usernames(&self) -> &RegexSet { &self.server.config.forbidden_usernames }