some fixups for the way friendica does context
This commit is contained in:
parent
b1d19f7eaf
commit
c4d210fdfb
11
activity.go
11
activity.go
|
@ -579,6 +579,11 @@ func xonkxonk(user *WhatAbout, item junk.Junk, origin string) *Honk {
|
|||
}
|
||||
}
|
||||
convoy, _ = obj.GetString("context")
|
||||
if strings.HasSuffix(convoy, "#context") &&
|
||||
originate(convoy) != originate(xid) {
|
||||
// friendica...
|
||||
convoy = ""
|
||||
}
|
||||
if convoy == "" {
|
||||
convoy, _ = obj.GetString("conversation")
|
||||
}
|
||||
|
@ -732,6 +737,12 @@ func xonkxonk(user *WhatAbout, item junk.Junk, origin string) *Honk {
|
|||
if needxonkid(user, rid) {
|
||||
saveoneup(rid)
|
||||
}
|
||||
if convoy == "" {
|
||||
xx := getxonk(user.ID, rid)
|
||||
if xx != nil {
|
||||
convoy = xx.Convoy
|
||||
}
|
||||
}
|
||||
}
|
||||
if convoy == "" {
|
||||
convoy = currenttid
|
||||
|
|
Loading…
Reference in New Issue