there's always a funner name to be found
This commit is contained in:
parent
e38684f4d2
commit
ea2ea2d94c
|
@ -360,7 +360,7 @@ func scanhonk(row RowLike) *Honk {
|
||||||
}
|
}
|
||||||
h.Date, _ = time.Parse(dbtimeformat, dt)
|
h.Date, _ = time.Parse(dbtimeformat, dt)
|
||||||
h.Audience = strings.Split(aud, " ")
|
h.Audience = strings.Split(aud, " ")
|
||||||
h.Public = !keepitquiet(h.Audience)
|
h.Public = loudandproud(h.Audience)
|
||||||
return h
|
return h
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
8
fun.go
8
fun.go
|
@ -538,13 +538,13 @@ func butnottooloud(aud []string) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func keepitquiet(aud []string) bool {
|
func loudandproud(aud []string) bool {
|
||||||
for _, a := range aud {
|
for _, a := range aud {
|
||||||
if a == thewholeworld {
|
if a == thewholeworld {
|
||||||
return false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return true
|
return true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
func firstclass(honk *Honk) bool {
|
func firstclass(honk *Honk) bool {
|
||||||
|
|
4
web.go
4
web.go
|
@ -1032,7 +1032,7 @@ func sendzonkofsorts(xonk *Honk, user *WhatAbout, what string) {
|
||||||
Date: time.Now().UTC(),
|
Date: time.Now().UTC(),
|
||||||
Audience: oneofakind(xonk.Audience),
|
Audience: oneofakind(xonk.Audience),
|
||||||
}
|
}
|
||||||
zonk.Public = !keepitquiet(zonk.Audience)
|
zonk.Public = loudandproud(zonk.Audience)
|
||||||
|
|
||||||
log.Printf("announcing %sed honk: %s", what, xonk.XID)
|
log.Printf("announcing %sed honk: %s", what, xonk.XID)
|
||||||
go honkworldwide(user, zonk)
|
go honkworldwide(user, zonk)
|
||||||
|
@ -1286,7 +1286,7 @@ func submithonk(w http.ResponseWriter, r *http.Request) {
|
||||||
http.Error(w, "honk to nowhere...", http.StatusNotFound)
|
http.Error(w, "honk to nowhere...", http.StatusNotFound)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
honk.Public = !keepitquiet(honk.Audience)
|
honk.Public = loudandproud(honk.Audience)
|
||||||
honk.Convoy = convoy
|
honk.Convoy = convoy
|
||||||
|
|
||||||
donkxid := r.FormValue("donkxid")
|
donkxid := r.FormValue("donkxid")
|
||||||
|
|
Loading…
Reference in New Issue