fix small bug

This commit is contained in:
felinae98 2021-06-23 19:40:59 +08:00
parent a8110675f4
commit 2980a334c4
No known key found for this signature in database
GPG Key ID: 00C8B010587FF610

View File

@ -130,7 +130,7 @@ class PlatformProto(metaclass=RegistryMeta):
if self.enable_tag and tags: if self.enable_tag and tags:
flag = False flag = False
post_tags = self.get_tags(raw_post) post_tags = self.get_tags(raw_post)
for tag in post_tags: for tag in post_tags or []:
if tag in tags: if tag in tags:
flag = True flag = True
break break