|
|
@@ -82,8 +82,13 @@ class LinkSummary: |
|
|
|
if not url: |
|
|
|
return False |
|
|
|
support_list = ["http://mp.weixin.qq.com", "https://mp.weixin.qq.com"] |
|
|
|
black_support_list = ["https://mp.weixin.qq.com/mp/waerrpage"] |
|
|
|
for black_url_prefix in black_support_list: |
|
|
|
if url.strip().startswith(black_url_prefix): |
|
|
|
logger.warn(f"[LinkSum] unsupported url, no need to process, url={url}") |
|
|
|
return False |
|
|
|
for support_url in support_list: |
|
|
|
if url.strip().startswith(support_url): |
|
|
|
return True |
|
|
|
logger.debug("[LinkSum] unsupported url, no need to process") |
|
|
|
logger.warn(f"[LinkSum] unsupported url, no need to process, url={url}") |
|
|
|
return False |