Declare variable

merge-requests/25/head
Bob Mottram 2022-06-21 09:31:11 +01:00
parent 559d136b50
commit c4fb760fe8
2 changed files with 2 additions and 1 deletions

View File

@ -1125,7 +1125,7 @@ def _is_nsfw(content: str) -> bool:
content_lower = content.lower()
nsfw_tags = (
'nsfw', 'porn', 'pr0n', 'explicit', 'lewd',
'nude', 'boob', 'erotic'
'nude', 'boob', 'erotic', 'sex'
)
for tag_name in nsfw_tags:
if tag_name in content_lower:

View File

@ -501,6 +501,7 @@ def webfinger_update(base_dir: str, nickname: str, domain: str,
filename = base_dir + wf_subdir + '/' + handle + '.json'
onionify = False
i2pify = False
if onion_domain:
if onion_domain in handle:
handle = handle.replace(onion_domain, domain)