simplify update save code
This commit is contained in:
parent
0b89e1b06c
commit
35375d2be9
11
activity.go
11
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)
|
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) {
|
||||||
|
|
Loading…
Reference in New Issue