diff --git a/files/helpers/actions.py b/files/helpers/actions.py index a1ea6ec93f..ebf17e08ec 100644 --- a/files/helpers/actions.py +++ b/files/helpers/actions.py @@ -81,7 +81,7 @@ def execute_snappy(post, v): rev = f"* [unddit.com](https://unddit.com/{rev})\n" elif post.url.startswith("https://old.reddit.com/u/"): rev = post.url.replace('https://old.reddit.com/u/', '') - rev = f"* [search.marsey.cat](https://search.marsey.cat/reddit-search/#\u007b\"author\":\"{rev}\",\"resultSize\":100\u007d)\n" + rev = f"* [camas.unddit.com](https://camas.unddit.com/reddit-search/#\u007b\"author\":\"{rev}\",\"resultSize\":100\u007d)\n" else: rev = '' newposturl = post.url @@ -115,7 +115,7 @@ def execute_snappy(post, v): addition += f'* [unddit.com](https://unddit.com/{rev})\n' if href.startswith('https://old.reddit.com/u/'): rev = href.replace('https://old.reddit.com/u/', '') - addition += f"* [search.marsey.cat](https://search.marsey.cat/reddit-search/#\u007b\"author\":\"{rev}\",\"resultSize\":100\u007d)\n" + addition += f"* [camas.unddit.com](https://camas.unddit.com/reddit-search/#\u007b\"author\":\"{rev}\",\"resultSize\":100\u007d)\n" addition += f'* [archive.org](https://web.archive.org/{href})\n' addition += f'* [archive.ph](https://archive.ph/?url={quote(href)}&run=1) (click to archive)\n' addition += f'* [ghostarchive.org](https://ghostarchive.org/search?term={quote(href)}) (click to archive)\n\n' diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 3d0d98ad29..c5460d2d13 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -419,7 +419,8 @@ def normalize_url(url): .replace("https://www.tiktok.com", "https://tiktok.com") \ .replace("https://www.streamable.com", "https://streamable.com") \ .replace("https://streamable.com/", "https://streamable.com/e/") \ - .replace("https://streamable.com/e/e/", "https://streamable.com/e/") + .replace("https://streamable.com/e/e/", "https://streamable.com/e/") \ + .replace("https://search.marsey.cat/#", "https://camas.unddit.com/#") url = imgur_regex.sub(r'\1_d.webp?maxwidth=9999&fidelity=high', url) url = giphy_regex.sub(r'\1.webp', url)