mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 20:51:55 +02:00
Don't download file as attachment for podcast
This commit is contained in:
parent
964ec53ffb
commit
547c4ea554
3 changed files with 10 additions and 3 deletions
|
@ -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",
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue