will need donks for bonks, too

This commit is contained in:
Ted Unangst 2019-05-05 14:08:27 -04:00
parent 6d0a5590a4
commit f722e168ca
1 changed files with 2 additions and 2 deletions

View File

@ -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},
} }