all repos — honk @ 22de29fa196462c93a85aeb15329d01955a9596a

my fork of honk

try to get original audience for remote replies
Ted Unangst tedu@tedunangst.com
Thu, 11 Apr 2019 10:44:50 -0400
commit

22de29fa196462c93a85aeb15329d01955a9596a

parent

3ea050b6e3a83d6b0ce8a56c97f57b85f5e1adf5

2 files changed, 12 insertions(+), 0 deletions(-)

jump to
M activity.goactivity.go

@@ -327,6 +327,15 @@ }

} } +func whosthere(xid string) []string { + obj, err := GetJunk(xid) + if err != nil { + log.Printf("error getting remote xonk: %s", err) + return nil + } + return newphone(nil, obj) +} + func newphone(a []string, obj map[string]interface{}) []string { for _, addr := range []string{"to", "cc", "attributedTo"} { who, _ := jsongetstring(obj, addr)
M honk.gohonk.go

@@ -870,6 +870,9 @@ if rid != "" {

xonk := getxonk("", rid) if xonk != nil { honk.Audience = append(honk.Audience, xonk.Audience...) + } else { + xonkaud := whosthere(rid) + honk.Audience = append(honk.Audience, xonkaud...) } } honk.Audience = oneofakind(honk.Audience)