gotosocial/internal/util
tobi 469da93678
[security] Check all involved IRIs during block checking (#593)
* tidy up context keys, add otherInvolvedIRIs

* add ReplyToable interface

* skip block check if we own the requesting domain

* add block check for other involved IRIs

* use cacheable status fetch

* remove unused ContextActivity

* remove unused ContextActivity

* add helper for unique URIs

* check through CCs and clean slice

* add GetAccountIDForStatusURI

* add GetAccountIDForAccountURI

* check blocks on involved account

* add statuses to tests

* add some blocked tests

* go fmt

* extract Tos as well as CCs

* test PostInboxRequestBodyHook

* add some more testActivities

* deduplicate involvedAccountIDs

* go fmt

* use cacheable db functions, remove new functions
2022-05-23 11:46:50 +02:00
..
statustools.go [feature] Dereference remote mentions when the account is not already known (#442) 2022-03-29 11:54:56 +02:00
statustools_test.go [feature] Dereference remote mentions when the account is not already known (#442) 2022-03-29 11:54:56 +02:00
unique.go [security] Check all involved IRIs during block checking (#593) 2022-05-23 11:46:50 +02:00