Skip to content

Commit

Permalink
fix: subscription declination logic is inverted
Browse files Browse the repository at this point in the history
  • Loading branch information
Kesuaheli committed Dec 26, 2024
1 parent 47d60eb commit c352baa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webserver/twitch/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func handleVerification(w http.ResponseWriter, _ *http.Request, rEvent rawEvent)
return
}
broadcaster := rEvent.Subscription.Condition["broadcaster_user_id"]
if subscriptions[broadcaster] {
if !subscriptions[broadcaster] {
log.Printf("Declined verification for broadcaster '%s'!", broadcaster)
w.WriteHeader(http.StatusConflict)
w.Write([]byte("{\"conflict\":\"that broadcaster is not allowed\"}"))
Expand Down

0 comments on commit c352baa

Please sign in to comment.