forked from tangled.org/core
Monorepo for Tangled

appview: artifact: unescape tags when resolving them

i could have sworn chi.URLParam was supposed to do this...

Changed files
+6
appview
state
+6
appview/state/artifact.go
··· 4 4 "fmt" 5 5 "log" 6 6 "net/http" 7 + "net/url" 7 8 "time" 8 9 9 10 comatproto "github.com/bluesky-social/indigo/api/atproto" ··· 248 249 } 249 250 250 251 func (s *State) resolveTag(f *FullyResolvedRepo, tagParam string) (*types.TagReference, error) { 252 + tagParam, err := url.QueryUnescape(tagParam) 253 + if err != nil { 254 + return nil, err 255 + } 256 + 251 257 us, err := NewUnsignedClient(f.Knot, s.config.Dev) 252 258 if err != nil { 253 259 return nil, err