aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Johnson <[email protected]>2025-11-26 02:02:43 -0500
committerSamuel Johnson <[email protected]>2025-11-26 02:02:43 -0500
commitc9433d03e2f6c7779a1b3eacb2b8e45fc7be99b4 (patch)
tree0249932b6f1bfa61c5efa8fa2ccfa6d94b6e54fd
parentd740821200f3bb89112ed08af84decf608d91732 (diff)
Remember to zero out array of context
-rw-r--r--cmd/web/handlers/rss.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/web/handlers/rss.go b/cmd/web/handlers/rss.go
index a1bfa92..97458ee 100644
--- a/cmd/web/handlers/rss.go
+++ b/cmd/web/handlers/rss.go
@@ -116,6 +116,7 @@ func (ctx *rssContext) new(w http.ResponseWriter, r *http.Request) {
func (ctx *rssContext) feed(w http.ResponseWriter, r *http.Request) {
ctx.Videos = []video{}
+ ctx.Written = []written{}
ctx.Feed = models.Feed{}
id := r.URL.Query().Get("id")