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) log.Printf("didn't find old version for update: %s", xonk.XID)
isUpdate = false isUpdate = false
} else { } else {
prev.Noise = xonk.Noise xonk.ID = prev.ID
prev.Precis = xonk.Precis updatehonk(&xonk)
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)
} }
} }
if !isUpdate && needxonk(user, &xonk) { if !isUpdate && needxonk(user, &xonk) {