simplify update save code
Ted Unangst tedu@tedunangst.com
Wed, 27 Nov 2019 14:44:16 -0500
1 files changed,
2 insertions(+),
9 deletions(-)
jump to
M
activity.go
→
activity.go
@@ -869,15 +869,8 @@ if prev == nil {
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) {