tangled
alpha
login
or
join now
edavis.dev
/
bsky-feeds
1
fork
atom
this repo has no description
1
fork
atom
overview
issues
pulls
pipelines
fix: in describe, fixup feeds output
Eric Davis
1 year ago
fc1aee94
8c4eda20
+6
-2
1 changed file
expand all
collapse all
unified
split
cmd
feedweb
main.go
+6
-2
cmd/feedweb/main.go
···
51
51
}
52
52
53
53
func describeFeedGenerator(c echo.Context) error {
54
54
+
type feed struct {
55
55
+
URI syntax.ATURI `json:"uri"`
56
56
+
}
57
57
+
54
58
type gen struct {
55
59
DID string `json:"did"`
56
56
-
Feeds []syntax.ATURI `json:"feeds"`
60
60
+
Feeds []feed `json:"feeds"`
57
61
}
58
62
59
63
out := gen{
···
65
69
if err != nil {
66
70
continue
67
71
}
68
68
-
out.Feeds = append(out.Feeds, aturi)
72
72
+
out.Feeds = append(out.Feeds, feed{URI: aturi})
69
73
}
70
74
71
75
return c.JSON(http.StatusOK, out)