Don't download file as attachment for podcast

This commit is contained in:
Agate 2020-08-06 10:53:04 +02:00
parent 964ec53ffb
commit 547c4ea554
3 changed files with 10 additions and 3 deletions

View file

@ -829,7 +829,9 @@ def rss_serialize_item(upload):
"enclosure": [
{
# we enforce MP3, since it's the only format supported everywhere
"url": federation_utils.full_url(upload.get_listen_url(to="mp3")),
"url": federation_utils.full_url(
upload.get_listen_url(to="mp3", download=False)
),
"length": upload.size or 0,
"type": "audio/mpeg",
}