mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
add bypass paywall links for several sites #205
This commit is contained in:
parent
917ca13a79
commit
2b7ab8c415
1 changed files with 4 additions and 1 deletions
|
@ -82,7 +82,10 @@ def tags_to_string(post: Post) -> str:
|
|||
|
||||
|
||||
def body_has_no_paywall_link(body):
|
||||
return 'https://archive.' not in body and 'https://12ft.io' not in body
|
||||
if body:
|
||||
return 'https://archive.' not in body and 'https://12ft.io' not in body
|
||||
else:
|
||||
return True
|
||||
|
||||
|
||||
def url_has_paywall(url) -> bool:
|
||||
|
|
Loading…
Add table
Reference in a new issue