From 0afafa535dd684e8e62e410b2684a21f0f1ed802 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Fri, 31 Dec 2021 14:25:46 +0100 Subject: [PATCH] [core] Fix: Ignore EventSub subscriptions of other bot instances Signed-off-by: Knut Ahlers --- twitch/eventsub.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/twitch/eventsub.go b/twitch/eventsub.go index 3310120..9c427d1 100644 --- a/twitch/eventsub.go +++ b/twitch/eventsub.go @@ -300,6 +300,11 @@ func (e *EventSubClient) PreFetchSubscriptions(ctx context.Context) error { logger.WithError(err).Error("Unable to deregister deprecated EventSub subscription") } continue + + case sub.Transport.Callback != e.fullAPIurl(): + // Different callback URL: We don't care, it's probably another + // bot instance with the same client ID + continue } condHash, err := sub.Condition.Hash()