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:
parent
851491e4ac
commit
0addff6bab
4 changed files with 16 additions and 8 deletions
|
|
@ -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
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue