simplify update save code

This commit is contained in:
Ted Unangst 2019-11-27 14:44:16 -05:00
parent 0b89e1b06c
commit 35375d2be9
1 changed files with 2 additions and 9 deletions

View File

@ -869,15 +869,8 @@ func xonksaver(user *WhatAbout, item junk.Junk, origin string) *Honk {
log.Printf("didn't find old version for update: %s", xonk.XID)
isUpdate = false
} else {
prev.Noise = xonk.Noise
prev.Precis = xonk.Precis
prev.Date = xonk.Date
prev.Donks = xonk.Donks
prev.Onts = xonk.Onts
prev.Place = xonk.Place
prev.Whofore = xonk.Whofore
prev.Mentions = xonk.Mentions
updatehonk(prev)
xonk.ID = prev.ID
updatehonk(&xonk)
}
}
if !isUpdate && needxonk(user, &xonk) {