π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[meta] Add a special case for comments in the notifier workaround
Manav Rathi12aa071adc27
diff --git a/infra/workers/github-discord-notifier/src/index.ts b/infra/workers/github-discord-notifier/src/index.tsindex 19191d9587..4e67c8469b 100644--- a/infra/workers/github-discord-notifier/src/index.ts+++ b/infra/workers/github-discord-notifier/src/index.ts@@ -65,7 +65,10 @@ const handleRequest = async (request: Request, discordWebhookURL: string) => {// arrangement (we shouldn't be getting 429s forever), so just try to// see if we can extract a URL from something we recognize.let activityURL: string | undefined;- if (requestJSON["issue"]) {+ if (requestJSON["comment"]) {+ activityURL = requestJSON["comment"]["html_url"];+ }+ if (!activityURL && requestJSON["issue"]) {activityURL = requestJSON["issue"]["html_url"];}if (!activityURL && requestJSON["discussion"]) {