Fix webapp_url for latest maubot

This commit is contained in:
L. Bradley LaBoon 2025-01-16 20:08:05 -05:00
parent 0bfa34ee73
commit 3d3feb14d5
Signed by: brad
GPG Key ID: 3D21FA839D9A229F
2 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
maubot: 0.5.0 maubot: 0.5.1
id: io.laboon.maubot.twitchbot id: io.laboon.maubot.twitchbot
version: 1.0.0 version: 1.0.0
license: AGPL-3.0-only license: AGPL-3.0-only

View File

@ -328,7 +328,7 @@ class TwitchBot(Plugin):
# Check current subs for ones that need removal # Check current subs for ones that need removal
for sub in api_subs: for sub in api_subs:
# Ignore subs that aren't for our instance # Ignore subs that aren't for our instance
if (sub["transport"]["callback"] != str(self.webapp_url) + "/stream-notify"): if (sub["transport"]["callback"] != str(self.webapp_url) + "stream-notify"):
continue continue
# Locate corresponding sub from DB # Locate corresponding sub from DB
@ -404,7 +404,7 @@ class TwitchBot(Plugin):
}, },
"transport": { "transport": {
"method": "webhook", "method": "webhook",
"callback": str(self.webapp_url) + "/stream-notify", "callback": str(self.webapp_url) + "stream-notify",
"secret": webhook_secret "secret": webhook_secret
} }
} }