oops, sharedInbox is hiding under endpoints
This commit is contained in:
parent
6ec4352d69
commit
ca85e502d2
|
@ -287,8 +287,8 @@ 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
|
||||||
boxlock.Unlock()
|
boxlock.Unlock()
|
||||||
|
@ -620,7 +620,7 @@ func honkworldwide(user *WhatAbout, honk *Honk) {
|
||||||
for _, f := range getdubs(user.ID) {
|
for _, f := range getdubs(user.ID) {
|
||||||
box, _ := getboxes(f.XID)
|
box, _ := getboxes(f.XID)
|
||||||
if box != nil && box.Shared != "" {
|
if box != nil && box.Shared != "" {
|
||||||
rcpts["%" + box.Shared] = true
|
rcpts["%"+box.Shared] = true
|
||||||
} else {
|
} else {
|
||||||
rcpts[f.XID] = true
|
rcpts[f.XID] = true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue