only first class honks in rss
This commit is contained in:
parent
9a1b98e402
commit
a9f0fad050
4
fun.go
4
fun.go
|
@ -448,6 +448,10 @@ func keepitquiet(aud []string) bool {
|
|||
return true
|
||||
}
|
||||
|
||||
func firstclass(honk *Honk) bool {
|
||||
return honk.Audience[0] == thewholeworld
|
||||
}
|
||||
|
||||
func oneofakind(a []string) []string {
|
||||
var x []string
|
||||
for n, s := range a {
|
||||
|
|
5
honk.go
5
honk.go
|
@ -258,6 +258,9 @@ func showrss(w http.ResponseWriter, r *http.Request) {
|
|||
}
|
||||
var modtime time.Time
|
||||
for _, honk := range honks {
|
||||
if !firstclass(honk) {
|
||||
continue
|
||||
}
|
||||
desc := string(honk.HTML)
|
||||
for _, d := range honk.Donks {
|
||||
desc += fmt.Sprintf(`<p><a href="%s">Attachment: %s</a>`,
|
||||
|
@ -922,7 +925,7 @@ func savebonk(w http.ResponseWriter, r *http.Request) {
|
|||
Date: dt,
|
||||
Donks: xonk.Donks,
|
||||
Convoy: xonk.Convoy,
|
||||
Audience: []string{oonker, thewholeworld},
|
||||
Audience: []string{thewholeworld, oonker},
|
||||
Public: true,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue