diff --git a/tubearchivist/web/src/webhook_base.py b/tubearchivist/web/src/webhook_base.py index 8f3da31..ad39573 100644 --- a/tubearchivist/web/src/webhook_base.py +++ b/tubearchivist/web/src/webhook_base.py @@ -33,6 +33,11 @@ class WebhookBase: ], "discord_unstable_hook": environ.get("DOCKER_UNSTABLE_HOOK_URL"), "discord_release_hook": environ.get("GITHUB_RELEASE_HOOK_URL"), + }, + "browser-extension": { + "gh_user": "tubearchivist", + "gh_repo": "browser-extension", + "discord_release_hook": environ.get("GITHUB_RELEASE_HOOK_URL"), } } ROADMAP_HOOK_URL = environ.get("ROADMAP_HOOK_URL") diff --git a/tubearchivist/web/src/webhook_github.py b/tubearchivist/web/src/webhook_github.py index 9a20525..bbfb808 100644 --- a/tubearchivist/web/src/webhook_github.py +++ b/tubearchivist/web/src/webhook_github.py @@ -253,6 +253,9 @@ class CommentNotification: if self.data["action"] == "closed": return False + if not html: + return "No description provided." + text = BeautifulSoup(html, features="html.parser").text if len(text) >= 500: