[core] Fix: Ignore EventSub subscriptions of other bot instances

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2021-12-31 14:25:46 +01:00
parent 437ef14fb0
commit 0afafa535d
Signed by: luzifer
GPG key ID: 0066F03ED215AD7D

View file

@ -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()