From e193ce64776fad6ed4a002fc1914084a2b5afba5 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Sat, 5 Oct 2019 16:50:25 -0400 Subject: [PATCH] reorder rss a bit --- web.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web.go b/web.go index b03a4fc..7db75aa 100644 --- a/web.go +++ b/web.go @@ -171,10 +171,6 @@ func showrss(w http.ResponseWriter, r *http.Request) { continue } desc := string(honk.HTML) - for _, d := range honk.Donks { - desc += fmt.Sprintf(`

Attachment: %s`, - d.URL, html.EscapeString(d.Name)) - } if t := honk.Time; t != nil { desc += fmt.Sprintf(`

Time: %s`, t.StartTime.Local().Format("03:04PM EDT Mon Jan 02")) if t.Duration != 0 { @@ -185,6 +181,10 @@ func showrss(w http.ResponseWriter, r *http.Request) { desc += fmt.Sprintf(`

Location: %s %f %f`, html.EscapeString(p.Url), html.EscapeString(p.Name), p.Latitude, p.Longitude) } + for _, d := range honk.Donks { + desc += fmt.Sprintf(`

Attachment: %s`, + d.URL, html.EscapeString(d.Name)) + } feed.Items = append(feed.Items, &rss.Item{ Title: fmt.Sprintf("%s %s %s", honk.Username, honk.What, honk.XID),