Lasa is a stateless proxy that generates a RSS or an Atom feed from a Standard.site publication. lasa.anhgelus.world
rss atom atprotocol standard-site atproto
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

build(go): update to goat-site v0.1.2

+21 -11
+2 -2
go.mod
··· 5 5 require ( 6 6 github.com/BurntSushi/toml v1.6.0 7 7 github.com/valkey-io/valkey-glide/go/v2 v2.3.1 8 - tangled.org/anhgelus.world/goat-site v0.1.1 9 - tangled.org/anhgelus.world/xrpc v0.2.0 8 + tangled.org/anhgelus.world/goat-site v0.1.2 9 + tangled.org/anhgelus.world/xrpc v0.3.0 10 10 ) 11 11 12 12 require (
+4 -4
go.sum
··· 20 20 gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= 21 21 pgregory.net/rapid v1.2.0 h1:keKAYRcjm+e1F0oAuU5F5+YPAWcyxNNRK2wud503Gnk= 22 22 pgregory.net/rapid v1.2.0/go.mod h1:PY5XlDGj0+V1FCq0o192FdRhpKHGTRIWBgqjDBTrq04= 23 - tangled.org/anhgelus.world/goat-site v0.1.1 h1:sjjTqrB/xLOAHIiLFay//3vf0fallJCV7jz9sTTsHHI= 24 - tangled.org/anhgelus.world/goat-site v0.1.1/go.mod h1:LpRJPLChodKotD/cxwSBfCaLMZqlryqWjW6zF7hbTd0= 25 - tangled.org/anhgelus.world/xrpc v0.2.0 h1:8KGSgMM0ppVi+VomeRcZrtxDaumpV6TmEoKc7vR4zt8= 26 - tangled.org/anhgelus.world/xrpc v0.2.0/go.mod h1:DW43uo9DKZHVN9fiH6lAYVQ+0cfSLoceo7aE5lE1jjw= 23 + tangled.org/anhgelus.world/goat-site v0.1.2 h1:PKbTi/NlARWACgeYokUmKmiHEq/w/1KMi1H1nxaGQTI= 24 + tangled.org/anhgelus.world/goat-site v0.1.2/go.mod h1:MUo14yMov8HHa5mRTVKfSMD4C8mvaZZnWPcqhROVxeE= 25 + tangled.org/anhgelus.world/xrpc v0.3.0 h1:oxCLd9RtUXsl/2XJTl7Lv0voh/v/INnxpTyQmM64VII= 26 + tangled.org/anhgelus.world/xrpc v0.3.0/go.mod h1:DW43uo9DKZHVN9fiH6lAYVQ+0cfSLoceo7aE5lE1jjw=
+5 -1
justfile
··· 1 1 builder := 'go build -ldflags "-s -w"' 2 2 testConfig := '"test.toml"' 3 + valkey_container := 'valkey' 3 4 4 5 docker := 'podman' 5 6 ··· 8 9 go run ./cmd/lasad/ -c {{testConfig}} 9 10 10 11 valkey: 11 - {{docker}} run --rm --name valkey -p 6379:6379 -d docker.io/valkey/valkey:alpine 12 + {{docker}} run --rm --name {{valkey_container}} -p 6379:6379 -d docker.io/valkey/valkey:alpine 13 + 14 + stop: 15 + {{docker}} stop {{valkey_container}} 12 16 13 17 build: build-lasa build-lasad 14 18
+10 -4
resolver.go
··· 8 8 "tangled.org/anhgelus.world/xrpc/atproto" 9 9 ) 10 10 11 - func Resolve(ctx context.Context, dir atproto.Directory, arg string) (did *atproto.DID, err error) { 11 + func Resolve(ctx context.Context, dir atproto.Directory, arg string) (*atproto.DID, error) { 12 + var err error 12 13 if strings.HasPrefix(arg, "did:") { 14 + var did *atproto.DID 13 15 did, err = atproto.ParseDID(arg) 14 16 if err == nil { 15 - return 17 + return did, nil 16 18 } 17 19 } 18 20 handle, e := atproto.ParseHandle(arg) ··· 22 24 err = errors.Join(err, e) 23 25 } 24 26 if err != nil { 25 - return 27 + return nil, err 26 28 } 27 - return handle.DID(ctx, dir) 29 + doc, err := dir.ResolveHandle(ctx, handle) 30 + if err != nil { 31 + return nil, err 32 + } 33 + return doc.DID, nil 28 34 }