summaryrefslogtreecommitdiff
path: root/internal/media/manager.go
diff options
context:
space:
mode:
authorLibravatar Daenney <daenney@users.noreply.github.com>2024-12-28 11:02:12 +0100
committerLibravatar GitHub <noreply@github.com>2024-12-28 11:02:12 +0100
commit6b727404befd8ec698e456d106a9ee40bc114af8 (patch)
treebe0a49d7d2533e04f5b89629730ec94a7577ea2d /internal/media/manager.go
parent[bugfix] small editing tweaks (#3631) (diff)
downloadgotosocial-6b727404befd8ec698e456d106a9ee40bc114af8.tar.xz
[bugfix] Advertise audio/mpeg as supported (#3632)
This will be either an mp1, mp2 or mp3 file. In practice it'll probably be mp3, but this handles mp1 too for good measure. We don't advertise audio/mp1 as a supported media type since best I can tell that was never a MIME type that's been used. This also changes the returned MIME-type for mp2 and mp3 to audio/mpeg, to match what's expected and supported by most things nowadays. Fixes: #3531
Diffstat (limited to 'internal/media/manager.go')
-rw-r--r--internal/media/manager.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/media/manager.go b/internal/media/manager.go
index 6aa13c17b..6d9c5629f 100644
--- a/internal/media/manager.go
+++ b/internal/media/manager.go
@@ -39,8 +39,9 @@ var SupportedMIMETypes = []string{
"image/gif", // .gif
"image/webp", // .webp
- "audio/mp2", // .mp2
- "audio/mp3", // .mp3
+ "audio/mp2", // .mp2
+ "audio/mp3", // .mp3
+ "audio/mpeg", // .mp1, .mp2, .mp3
"video/x-msvideo", // .avi