repos / pico

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

commit
85bbfc5
parent
cafbdae
author
Eric Bower
date
2024-09-08 15:46:18 +0000 UTC
chore: cleanup
1 files changed,  +3, -3
M pubsub/cli.go
+3, -3
 1@@ -130,15 +130,15 @@ func WishMiddleware(handler *CliHandler) wish.Middleware {
 2 						writer := NewTabWriter(sesh)
 3 						fmt.Fprintln(writer, "Channel\tID")
 4 						for _, sub := range subs {
 5-							userName, channel := fromChannel(sub.Name)
 6-							if userName != user.Name {
 7+							userName, _ := fromChannel(sub.Name)
 8+							if userName != "public" && userName != user.Name {
 9 								continue
10 							}
11 
12 							fmt.Fprintf(
13 								writer,
14 								"%s\t%s\n",
15-								channel, sub.ID,
16+								sub.Name, sub.ID,
17 							)
18 						}
19 						writer.Flush()