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

+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 }