mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 03:59:24 +02:00
Added missing format in oembed discovery link
This commit is contained in:
parent
5dac6cdc20
commit
a56531e111
2 changed files with 8 additions and 4 deletions
|
@ -63,7 +63,7 @@ def library_track(request, pk):
|
|||
"type": "application/json+oembed",
|
||||
"href": (
|
||||
utils.join_url(settings.FUNKWHALE_URL, reverse("api:v1:oembed"))
|
||||
+ "?url={}".format(track_url)
|
||||
+ "?url={}&format=json".format(track_url)
|
||||
),
|
||||
}
|
||||
)
|
||||
|
@ -120,7 +120,7 @@ def library_album(request, pk):
|
|||
"type": "application/json+oembed",
|
||||
"href": (
|
||||
utils.join_url(settings.FUNKWHALE_URL, reverse("api:v1:oembed"))
|
||||
+ "?url={}".format(album_url)
|
||||
+ "?url={}&format=json".format(album_url)
|
||||
),
|
||||
}
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue