all repos — honk @ 0b202b6dc5ab3483f94f4c9e97e2de1dd082eb37

my fork of honk

reorder rss a bit
Ted Unangst tedu@tedunangst.com
Sat, 05 Oct 2019 16:50:25 -0400
commit

0b202b6dc5ab3483f94f4c9e97e2de1dd082eb37

parent

a9d0301086ea4ecc97c4ba449d155fd3720c6db3

1 files changed, 4 insertions(+), 4 deletions(-)

jump to
M web.goweb.go

@@ -171,10 +171,6 @@ if !firstclass(honk) {

continue } desc := string(honk.HTML) - for _, d := range honk.Donks { - desc += fmt.Sprintf(`<p><a href="%s">Attachment: %s</a>`, - d.URL, html.EscapeString(d.Name)) - } if t := honk.Time; t != nil { desc += fmt.Sprintf(`<p>Time: %s`, t.StartTime.Local().Format("03:04PM EDT Mon Jan 02")) if t.Duration != 0 {

@@ -184,6 +180,10 @@ }

if p := honk.Place; p != nil { desc += fmt.Sprintf(`<p>Location: <a href="%s">%s</a> %f %f`, html.EscapeString(p.Url), html.EscapeString(p.Name), p.Latitude, p.Longitude) + } + for _, d := range honk.Donks { + desc += fmt.Sprintf(`<p><a href="%s">Attachment: %s</a>`, + d.URL, html.EscapeString(d.Name)) } feed.Items = append(feed.Items, &rss.Item{