|
|
@ -234,7 +234,6 @@ struct InvidiousPlaylist
|
|
|
|
0_i64
|
|
|
|
0_i64
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def description_html
|
|
|
|
def description_html
|
|
|
|
HTML.escape(self.description)
|
|
|
|
HTML.escape(self.description)
|
|
|
|
end
|
|
|
|
end
|
|
|
@ -252,7 +251,7 @@ def create_playlist(title, privacy, user)
|
|
|
|
created: Time.utc,
|
|
|
|
created: Time.utc,
|
|
|
|
updated: Time.utc,
|
|
|
|
updated: Time.utc,
|
|
|
|
privacy: privacy,
|
|
|
|
privacy: privacy,
|
|
|
|
index: [] of Int64
|
|
|
|
index: [] of Int64,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
Invidious::Database::Playlists.insert(playlist)
|
|
|
|
Invidious::Database::Playlists.insert(playlist)
|
|
|
@ -270,7 +269,7 @@ def subscribe_playlist(user, playlist)
|
|
|
|
created: Time.utc,
|
|
|
|
created: Time.utc,
|
|
|
|
updated: playlist.updated,
|
|
|
|
updated: playlist.updated,
|
|
|
|
privacy: PlaylistPrivacy::Private,
|
|
|
|
privacy: PlaylistPrivacy::Private,
|
|
|
|
index: [] of Int64
|
|
|
|
index: [] of Int64,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
Invidious::Database::Playlists.insert(playlist)
|
|
|
|
Invidious::Database::Playlists.insert(playlist)
|
|
|
|