Skip to content

Commit

Permalink
[facebook] update url cleaner
Browse files Browse the repository at this point in the history
  • Loading branch information
naisanzaa committed Dec 18, 2024
1 parent a06091c commit 1663f22
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions automon/integrations/facebook/groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 1663f22

Please sign in to comment.