diff options
author | 2022-09-23 21:27:35 +0200 | |
---|---|---|
committer | 2022-09-23 20:27:35 +0100 | |
commit | 69a193dae543641a2db6823fa6493c02f56fafbd (patch) | |
tree | c1a0c71d64642db12a17c6770642c3e0af859960 /internal/processing | |
parent | [docs] NLnet follow up questions (#846) (diff) | |
download | gotosocial-69a193dae543641a2db6823fa6493c02f56fafbd.tar.xz |
[feature] Allow delivery to sharedInboxes where possible (#847)
* update Activity
* add instance-deliver-to-shared-inboxes setting
* update activity version again
* add SharedInboxURI field to accounts
* serdes for endpoints/sharedInbox
* deliver to sharedInbox if one is available
* update tests
* only assign shared inbox if shared domain
* look for shared inbox if currently nil
* go fmt
* finger to get params.RemoteAccountID if necessary
* make comments clearer
* compare dns more consistently
Diffstat (limited to 'internal/processing')
-rw-r--r-- | internal/processing/account_test.go | 2 | ||||
-rw-r--r-- | internal/processing/fromfederator_test.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/internal/processing/account_test.go b/internal/processing/account_test.go index a9b492d06..8e33ccc7d 100644 --- a/internal/processing/account_test.go +++ b/internal/processing/account_test.go @@ -71,7 +71,7 @@ func (suite *AccountTestSuite) TestAccountDeleteLocal() { }) if !testrig.WaitFor(func() bool { - sentI, ok := suite.httpClient.SentMessages.Load(followingAccount.InboxURI) + sentI, ok := suite.httpClient.SentMessages.Load(*followingAccount.SharedInboxURI) if ok { sent, ok = sentI.([][]byte) if !ok { diff --git a/internal/processing/fromfederator_test.go b/internal/processing/fromfederator_test.go index 385f3b134..9337482c4 100644 --- a/internal/processing/fromfederator_test.go +++ b/internal/processing/fromfederator_test.go @@ -488,7 +488,7 @@ func (suite *FromFederatorTestSuite) TestProcessFollowRequestUnlocked() { // an accept message should be sent to satan's inbox var sent [][]byte if !testrig.WaitFor(func() bool { - sentI, ok := suite.httpClient.SentMessages.Load(originAccount.InboxURI) + sentI, ok := suite.httpClient.SentMessages.Load(*originAccount.SharedInboxURI) if ok { sent, ok = sentI.([][]byte) if !ok { |