From 7892ee0e63902d95886b165c31fd3b64c8633585 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Tue, 10 Oct 2023 15:29:12 +0300 Subject: [PATCH] Allow pdf inline --- synapse/media/_base.py | 1 + 1 file changed, 1 insertion(+) diff --git a/synapse/media/_base.py b/synapse/media/_base.py index e0935bf01..80b62d0c2 100644 --- a/synapse/media/_base.py +++ b/synapse/media/_base.py @@ -57,6 +57,7 @@ INLINE_CONTENT_TYPES = [ "text/csv", "application/json", "application/ld+json", + "application/pdf", # We allow some media files deemed as safe, which comes from the matrix-react-sdk. # https://github.com/matrix-org/matrix-react-sdk/blob/a70fcfd0bcf7f8c85986da18001ea11597989a7c/src/utils/blobs.ts#L51 # SVGs are *intentionally* omitted.