repos / pico

pico services - prose.sh, pastes.sh, imgs.sh, feeds.sh, pgs.sh
git clone https://github.com/picosh/pico.git

commit
66129ed
parent
2ea92f9
author
Antonio Mika
date
2023-11-16 23:33:12 +0000 UTC
Fix bug in contains
1 files changed,  +2, -2
M bouncer/subscriber-change.diff
+2, -2
 1@@ -24,7 +24,7 @@ index f383212..35082d4 100644
 2  				Endpoint: endpoint,
 3  			}
 4 diff --git a/server.go b/server.go
 5-index 552104e..251635c 100644
 6+index 552104e..4b2ffe6 100644
 7 --- a/server.go
 8 +++ b/server.go
 9 @@ -10,6 +10,7 @@ import (
10@@ -39,7 +39,7 @@ index 552104e..251635c 100644
11  	ctx, cancel := context.WithTimeout(ctx, 15*time.Second)
12  	defer cancel()
13  
14-+	if strings.Contains(";", sub.Endpoint) {
15++	if strings.Contains(sub.Endpoint, ";") {
16 +		parts := strings.Split(sub.Endpoint, ";")
17 +		sub.Endpoint = parts[0]
18 +