mirror of https://gitlab.com/bashrc2/epicyon
Declare variable
parent
559d136b50
commit
c4fb760fe8
|
@ -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:
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue