Don't add delete buttons to youtube search results

People kept clicking them resulting in database errors for unregistered channels.
This commit is contained in:
calzoneman 2013-09-23 16:25:45 -05:00
parent 851491e4ac
commit 0addff6bab
4 changed files with 16 additions and 8 deletions

View file

@ -326,6 +326,7 @@ User.prototype.initCallbacks = function() {
searchfn(data.query.split(" "), function (e, vids) {
if(!e) {
self.socket.emit("searchResults", {
source: "yt",
results: vids
});
}
@ -333,6 +334,7 @@ User.prototype.initCallbacks = function() {
} else {
self.channel.search(data.query, function (vids) {
self.socket.emit("searchResults", {
source: "library",
results: vids
});
});