Commit 2483b264 authored by Agate's avatar Agate 💬
Browse files

See #1100: use scope = me for playlists

parent 98467524
Pipeline #11693 passed with stages
in 5 minutes and 24 seconds
......@@ -31,7 +31,6 @@ class PlaylistFilter(filters.FilterSet):
class Meta:
model = models.Playlist
fields = {
"user": ["exact"],
"name": ["exact", "icontains"],
}
......
......@@ -33,7 +33,7 @@ export default {
let playlists = []
let url = 'playlists/'
while (url != null) {
let response = await axios.get(url, {params: {user: userId}})
let response = await axios.get(url, {params: {scope: "me"}})
playlists = [...playlists, ...response.data.results]
url = response.data.next
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment