forked from MarseyWorld/MarseyWorld
use undelete's new feature
parent
57f3c84bbf
commit
3344d9d74a
|
@ -192,7 +192,7 @@ def execute_snappy(post, v):
|
|||
body += "\n\n"
|
||||
|
||||
if post.url and not post.url.startswith('/') and not post.url.startswith(f'{SITE_FULL}/') and not post.url.startswith(SITE_FULL_IMAGES):
|
||||
if post.url.startswith('https://old.reddit.com/r/') and '/comments/' in post.url:
|
||||
if post.url.startswith('https://old.reddit.com/r/'):
|
||||
rev = post.url.replace('https://old.reddit.com/', '')
|
||||
rev = f"* [undelete.pullpush.io](https://undelete.pullpush.io/{rev})\n\n"
|
||||
elif post.url.startswith("https://old.reddit.com/user/"):
|
||||
|
@ -220,7 +220,7 @@ def execute_snappy(post, v):
|
|||
if "Snapshots:\n\n" not in body: body += "Snapshots:\n\n"
|
||||
if f'**[{title}]({href})**:\n\n' not in body:
|
||||
addition = f'**[{title}]({href})**:\n\n'
|
||||
if href.startswith('https://old.reddit.com/r/') and '/comments/' in href:
|
||||
if href.startswith('https://old.reddit.com/r/'):
|
||||
rev = href.replace('https://old.reddit.com/', '')
|
||||
addition += f'* [undelete.pullpush.io](https://undelete.pullpush.io/{rev})\n\n'
|
||||
elif href.startswith('https://old.reddit.com/user/'):
|
||||
|
|
Loading…
Reference in New Issue