Skip to content

Invidious is an alternative front-end to YouTube

Merge pull request #2719 from SamantazFox/batch-minor-fixes

Samantaz Fox3bb7fbb2f119
diff --cc src/invidious/views/watch.ecr
index fa4fe083,11e738ab..363f1262
--- a/src/invidious/views/watch.ecr
+++ b/src/invidious/views/watch.ecr
@@@ -138,9 -138,9 +138,9 @@@ we're going to need to do it here in or
</p>
<% if user %>
- <% playlists = PG_DB.query_all("SELECT id,title FROM playlists WHERE author = $1 AND id LIKE 'IV%'", user.email, as: {String, String}) %>
+ <% playlists = Invidious::Database::Playlists.select_user_created_playlists(user.email) %>
<% if !playlists.empty? %>
- <form data-onsubmit="return_false" class="pure-form pure-form-stacked" action="/playlist_ajax" method="post">
+ <form data-onsubmit="return_false" class="pure-form pure-form-stacked" action="/playlist_ajax" method="post" target="_blank">
<div class="pure-control-group">
<label for="playlist_id"><%= translate(locale, "Add to playlist: ") %></label>
<select style="width:100%" name="playlist_id" id="playlist_id">