Daniel Brötzmann pushed to branch master at gajim / gajim


Commits:
feaf6f49 by wurstsalat at 2022-07-18T21:48:28+02:00
fix: Preview: Allow manual download for all mime types

Fixes #11044

- - - - -


1 changed file:

- gajim/common/preview.py


Changes:

=====================================
gajim/common/preview.py
=====================================
@@ -428,7 +428,7 @@ def _on_content_sniffed(self,
         preview.mime_type = type_
         preview.file_size = file_size
 
-        if type_ not in ALLOWED_MIME_TYPES:
+        if type_ not in ALLOWED_MIME_TYPES and not force:
             log.info('Not an allowed content type: %s, %s', type_, uri)
             session.cancel_message(message, Soup.Status.CANCELLED)
             return



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/feaf6f4920145ec4ac69af364a40613662bd2e12

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/feaf6f4920145ec4ac69af364a40613662bd2e12
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to