reorder rss a bit
This commit is contained in:
parent
d08eab8712
commit
e193ce6477
8
web.go
8
web.go
|
@ -171,10 +171,6 @@ func showrss(w http.ResponseWriter, r *http.Request) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
desc := string(honk.HTML)
|
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 {
|
if t := honk.Time; t != nil {
|
||||||
desc += fmt.Sprintf(`<p>Time: %s`, t.StartTime.Local().Format("03:04PM EDT Mon Jan 02"))
|
desc += fmt.Sprintf(`<p>Time: %s`, t.StartTime.Local().Format("03:04PM EDT Mon Jan 02"))
|
||||||
if t.Duration != 0 {
|
if t.Duration != 0 {
|
||||||
|
@ -185,6 +181,10 @@ func showrss(w http.ResponseWriter, r *http.Request) {
|
||||||
desc += fmt.Sprintf(`<p>Location: <a href="%s">%s</a> %f %f`,
|
desc += fmt.Sprintf(`<p>Location: <a href="%s">%s</a> %f %f`,
|
||||||
html.EscapeString(p.Url), html.EscapeString(p.Name), p.Latitude, p.Longitude)
|
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{
|
feed.Items = append(feed.Items, &rss.Item{
|
||||||
Title: fmt.Sprintf("%s %s %s", honk.Username, honk.What, honk.XID),
|
Title: fmt.Sprintf("%s %s %s", honk.Username, honk.What, honk.XID),
|
||||||
|
|
Loading…
Reference in New Issue