Fixed tag blacklisting for nsfw
This commit is contained in:
parent
2d81bc45fd
commit
88f92cbec6
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user