another try at recontexting friendica threads

This commit is contained in:
Ted Unangst 2019-10-18 21:22:33 -04:00
parent 40ab30dee6
commit 341b03b8f0
1 changed files with 8 additions and 5 deletions

View File

@ -664,11 +664,6 @@ func xonksaver(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")
}
@ -884,6 +879,14 @@ func xonksaver(user *WhatAbout, item junk.Junk, origin string) *Honk {
}
}
if !isUpdate && needxonk(user, &xonk) {
if strings.HasSuffix(convoy, "#context") {
// friendica...
if rid != "" {
convoy = ""
} else {
convoy = url
}
}
if rid != "" {
if needxonkid(user, rid) {
goingup++