From 341b03b8f0352d92854fddd007ad710bef8814ee Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Fri, 18 Oct 2019 21:22:33 -0400 Subject: [PATCH] another try at recontexting friendica threads --- activity.go | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/activity.go b/activity.go index ee48301..9992cb2 100644 --- a/activity.go +++ b/activity.go @@ -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++