some fixups for the way friendica does context

master
Ted Unangst 5 years ago
parent b1d19f7eaf
commit c4d210fdfb

@ -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…
Cancel
Save