will need donks for bonks, too
This commit is contained in:
parent
6d0a5590a4
commit
f722e168ca
4
honk.go
4
honk.go
|
@ -733,10 +733,10 @@ func savebonk(w http.ResponseWriter, r *http.Request) {
|
||||||
if xonk == nil {
|
if xonk == nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
donksforhonks([]*Honk{xonk})
|
||||||
if xonk.Honker == "" {
|
if xonk.Honker == "" {
|
||||||
xonk.XID = fmt.Sprintf("https://%s/u/%s/h/%s", serverName, xonk.Username, xonk.XID)
|
xonk.XID = fmt.Sprintf("https://%s/u/%s/h/%s", serverName, xonk.Username, xonk.XID)
|
||||||
}
|
}
|
||||||
convoy := xonk.Convoy
|
|
||||||
|
|
||||||
dt := time.Now().UTC()
|
dt := time.Now().UTC()
|
||||||
bonk := Honk{
|
bonk := Honk{
|
||||||
|
@ -747,7 +747,7 @@ func savebonk(w http.ResponseWriter, r *http.Request) {
|
||||||
XID: xonk.XID,
|
XID: xonk.XID,
|
||||||
Date: dt,
|
Date: dt,
|
||||||
Noise: xonk.Noise,
|
Noise: xonk.Noise,
|
||||||
Convoy: convoy,
|
Convoy: xonk.Convoy,
|
||||||
Donks: xonk.Donks,
|
Donks: xonk.Donks,
|
||||||
Audience: []string{thewholeworld},
|
Audience: []string{thewholeworld},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue