basic Add support
This commit is contained in:
parent
22ead8823c
commit
c0717679ed
16
activity.go
16
activity.go
|
@ -555,6 +555,22 @@ func xonksaver(user *WhatAbout, item junk.Junk, origin string) *Honk {
|
||||||
return xonkxonkfn(obj, originate(xid))
|
return xonkxonkfn(obj, originate(xid))
|
||||||
}
|
}
|
||||||
return nil
|
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":
|
case "Audio":
|
||||||
fallthrough
|
fallthrough
|
||||||
case "Video":
|
case "Video":
|
||||||
|
|
Loading…
Reference in New Issue