can use prepend here
This commit is contained in:
parent
fd632ab1d4
commit
2a06f69aa0
2
honk.go
2
honk.go
|
@ -718,7 +718,7 @@ func savehonk(w http.ResponseWriter, r *http.Request) {
|
||||||
if noise[0] == '@' {
|
if noise[0] == '@' {
|
||||||
honk.Audience = append(grapevine(noise), thewholeworld)
|
honk.Audience = append(grapevine(noise), thewholeworld)
|
||||||
} else {
|
} else {
|
||||||
honk.Audience = append([]string{thewholeworld}, grapevine(noise)...)
|
honk.Audience = prepend(thewholeworld, grapevine(noise))
|
||||||
}
|
}
|
||||||
if rid != "" {
|
if rid != "" {
|
||||||
xonk := getxonk("", rid)
|
xonk := getxonk("", rid)
|
||||||
|
|
Loading…
Reference in New Issue