all repos — honk @ 9e27d5aa7797ba61394a5a0369e7528551cdddcc

my fork of honk

oops, sharedInbox is hiding under endpoints
Ted Unangst tedu@tedunangst.com
Tue, 16 Apr 2019 14:47:08 -0400
commit

9e27d5aa7797ba61394a5a0369e7528551cdddcc

parent

5a81cb1420f0269418f061b7830fb95947d51773

1 files changed, 5 insertions(+), 5 deletions(-)

jump to
M activity.goactivity.go

@@ -266,8 +266,8 @@ }

} type Box struct { - In string - Out string + In string + Out string Shared string }

@@ -287,8 +287,8 @@ return nil, err

} inbox, _ := jsongetstring(j, "inbox") outbox, _ := jsongetstring(j, "outbox") - sbox, _ := jsongetstring(j, "sharedInbox") - b = &Box { In: inbox, Out: outbox, Shared: sbox } + sbox, _ := jsonfindstring(j, []string{"endpoints", "sharedInbox"}) + b = &Box{In: inbox, Out: outbox, Shared: sbox} boxlock.Lock() boxofboxes[ident] = b boxlock.Unlock()

@@ -620,7 +620,7 @@ msg := buf.Bytes()

for _, f := range getdubs(user.ID) { box, _ := getboxes(f.XID) if box != nil && box.Shared != "" { - rcpts["%" + box.Shared] = true + rcpts["%"+box.Shared] = true } else { rcpts[f.XID] = true }