Skip to content

🎧 Your Personal Streaming Service

fix: add `public` attribute to playlists. Even though it is optional, DSub requires it

Deluand7b5e6a36c07
diff --git a/engine/playlists.go b/engine/playlists.go
index 7dd1c6306..97828d22c 100644
--- a/engine/playlists.go
+++ b/engine/playlists.go
@@ -102,7 +102,11 @@ func (p *playlists) Update(ctx context.Context, playlistId string, name *string,
}
func (p *playlists) GetAll(ctx context.Context) (model.Playlists, error) {
- return p.ds.Playlist(ctx).GetAll(model.QueryOptions{})
+ all, err := p.ds.Playlist(ctx).GetAll(model.QueryOptions{})
+ for i := range all {
+ all[i].Public = true
+ }
+ return all, err
}
type PlaylistInfo struct {