From 35375d2be9866693b47409b4c6febf1fd38e6158 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Wed, 27 Nov 2019 14:44:16 -0500 Subject: [PATCH] simplify update save code --- activity.go | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/activity.go b/activity.go index a67aa3c..692e2bc 100644 --- a/activity.go +++ b/activity.go @@ -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) {