mirror of
https://github.com/myned/modufur.git
synced 2024-12-23 22:27:27 +00:00
Fixed tags still being limited with order:
This commit is contained in:
parent
91890a79e8
commit
baba987697
1 changed files with 7 additions and 7 deletions
|
@ -573,6 +573,13 @@ class MsG:
|
|||
blacklist.update(list(self.aliases[tag]) + [tag])
|
||||
for tag in self.blacklists['user_blacklist'].get(ctx.author.id, set()):
|
||||
blacklist.update(list(self.aliases[tag]) + [tag])
|
||||
# Checks for, assigns, and removes first order in tags if possible
|
||||
order = [tag for tag in tags if 'order:' in tag]
|
||||
if order:
|
||||
order = order[0]
|
||||
tags.remove(order)
|
||||
else:
|
||||
order = 'order:random'
|
||||
# Checks if tags are in local blacklists
|
||||
if tags:
|
||||
if (len(tags) > 5 and booru == 'e621') or (len(tags) > 4 and booru == 'e926'):
|
||||
|
@ -581,13 +588,6 @@ class MsG:
|
|||
if tag == 'swf' or tag == 'webm' or tag in blacklist:
|
||||
raise exc.TagBlacklisted(tag)
|
||||
|
||||
order = [tag for tag in tags if 'order:' in tag]
|
||||
if order:
|
||||
order = order[0]
|
||||
tags.remove(order)
|
||||
else:
|
||||
order = 'order:random'
|
||||
|
||||
# Checks for blacklisted tags in endpoint blacklists - try/except is for continuing the parent loop
|
||||
posts = {}
|
||||
temposts = len(posts)
|
||||
|
|
Loading…
Reference in a new issue