oops, sharedInbox is hiding under endpoints

This commit is contained in:
Ted Unangst 2019-04-16 14:47:08 -04:00
parent 6ec4352d69
commit ca85e502d2
1 changed files with 5 additions and 5 deletions

View File

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