mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 23:08:25 +02:00
Disable download by default on track urls exposed over federation
This commit is contained in:
parent
828f602b79
commit
dd9cca432d
6 changed files with 45 additions and 6 deletions
|
@ -953,7 +953,7 @@ def test_activity_pub_audio_serializer_to_ap(factories):
|
|||
"attributedTo": upload.library.actor.fid,
|
||||
"url": [
|
||||
{
|
||||
"href": utils.full_url(upload.listen_url),
|
||||
"href": utils.full_url(upload.listen_url_no_download),
|
||||
"type": "Link",
|
||||
"mediaType": "audio/mp3",
|
||||
},
|
||||
|
@ -1105,7 +1105,7 @@ def test_channel_upload_serializer(factories):
|
|||
{
|
||||
"type": "Link",
|
||||
"mimeType": upload.mimetype,
|
||||
"href": utils.full_url(upload.listen_url),
|
||||
"href": utils.full_url(upload.listen_url_no_download),
|
||||
},
|
||||
{
|
||||
"type": "Link",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue