basic Add support
Ted Unangst tedu@tedunangst.com
Sun, 27 Oct 2019 01:22:43 -0400
1 files changed,
16 insertions(+),
0 deletions(-)
jump to
M
activity.go
→
activity.go
@@ -555,6 +555,22 @@ }
return xonkxonkfn(obj, originate(xid)) } return nil + case "Add": + xid, ok = item.GetString("object") + if ok { + // check target... + if !needxonkid(user, xid) { + log.Printf("don't need added obj: %s", xid) + return nil + } + obj, err = GetJunkHardMode(xid) + if err != nil { + log.Printf("error getting add: %s", err) + return nil + } + return xonkxonkfn(obj, originate(xid)) + } + return nil case "Audio": fallthrough case "Video":