mirror of
https://github.com/tubearchivist/tubearchivist-server.git
synced 2024-11-22 03:40:12 +00:00
add browser extension to valid hooks, fix empty desc
This commit is contained in:
parent
420702e7cf
commit
ac4141fd19
@ -33,6 +33,11 @@ class WebhookBase:
|
|||||||
],
|
],
|
||||||
"discord_unstable_hook": environ.get("DOCKER_UNSTABLE_HOOK_URL"),
|
"discord_unstable_hook": environ.get("DOCKER_UNSTABLE_HOOK_URL"),
|
||||||
"discord_release_hook": environ.get("GITHUB_RELEASE_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")
|
ROADMAP_HOOK_URL = environ.get("ROADMAP_HOOK_URL")
|
||||||
|
@ -253,6 +253,9 @@ class CommentNotification:
|
|||||||
if self.data["action"] == "closed":
|
if self.data["action"] == "closed":
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
if not html:
|
||||||
|
return "No description provided."
|
||||||
|
|
||||||
text = BeautifulSoup(html, features="html.parser").text
|
text = BeautifulSoup(html, features="html.parser").text
|
||||||
|
|
||||||
if len(text) >= 500:
|
if len(text) >= 500:
|
||||||
|
Loading…
Reference in New Issue
Block a user