From 1663f22360d7d63b7bc9509f033592eadb743537 Mon Sep 17 00:00:00 2001 From: naisanzaa Date: Wed, 18 Dec 2024 18:43:12 +0800 Subject: [PATCH] [facebook] update url cleaner --- automon/integrations/facebook/groups.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/automon/integrations/facebook/groups.py b/automon/integrations/facebook/groups.py index ac5fd9a..79bc858 100644 --- a/automon/integrations/facebook/groups.py +++ b/automon/integrations/facebook/groups.py @@ -445,6 +445,9 @@ def url_cleaner(url: str): return if url[-1] == '/': url = url[:-1] + # https://m.facebook.com/groups/ -> https://www.facebook.com/groups/ + if '://m.' in url: + url = url.replace('://m.', '://www.') return url def visible(self) -> str: