Fixed tag blacklisting for nsfw

This commit is contained in:
Master Kwoth 2017-10-17 15:30:22 +02:00
parent 2d81bc45fd
commit 88f92cbec6

View File

@ -215,12 +215,6 @@ namespace NadekoBot.Modules.Searches.Services
{ {
var blacklistedTags = GetBlacklistedTags(guild.Value); var blacklistedTags = GetBlacklistedTags(guild.Value);
if (blacklistedTags
.Any(x => tag.ToLowerInvariant().Contains(x)))
{
throw new TagBlacklistedException();
}
var cacher = _imageCacher.GetOrAdd(guild.Value, (key) => new SearchImageCacher()); var cacher = _imageCacher.GetOrAdd(guild.Value, (key) => new SearchImageCacher());
return cacher.GetImage(tag, isExplicit, type, blacklistedTags); return cacher.GetImage(tag, isExplicit, type, blacklistedTags);