Added missing format in oembed discovery link

This commit is contained in:
Eliot Berriot 2018-12-19 15:53:54 +01:00
parent 5dac6cdc20
commit a56531e111
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
2 changed files with 8 additions and 4 deletions

View file

@ -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)
),
}
)