mirror of https://github.com/calzoneman/sync.git
Fix custom embed invalid tag message
This commit is contained in:
parent
22a4115217
commit
a16f885fbd
|
@ -8,6 +8,7 @@ var Flags = require("../flags");
|
||||||
var db = require("../database");
|
var db = require("../database");
|
||||||
var Logger = require("../logger");
|
var Logger = require("../logger");
|
||||||
var CustomEmbedFilter = require("../customembed").filter;
|
var CustomEmbedFilter = require("../customembed").filter;
|
||||||
|
var XSS = require("../xss");
|
||||||
|
|
||||||
const MAX_ITEMS = Config.get("playlist.max-items");
|
const MAX_ITEMS = Config.get("playlist.max-items");
|
||||||
|
|
||||||
|
@ -467,7 +468,7 @@ PlaylistModule.prototype.queueStandard = function (user, data) {
|
||||||
function handleLookup() {
|
function handleLookup() {
|
||||||
InfoGetter.getMedia(data.id, data.type, function (err, media) {
|
InfoGetter.getMedia(data.id, data.type, function (err, media) {
|
||||||
if (err) {
|
if (err) {
|
||||||
error(err+"");
|
error(XSS.sanitizeText(String(err)));
|
||||||
self.channel.activeLock.release();
|
self.channel.activeLock.release();
|
||||||
return lock.release();
|
return lock.release();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue