gotosocial/internal/typeutils
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
..
astointernal.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
astointernal_test.go [bugfix] Fix CWs not showing sometimes (#488) 2022-04-26 10:47:21 +02:00
converter.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
converter_test.go [bugfix] Fix CWs not showing sometimes (#488) 2022-04-26 10:47:21 +02:00
frontendtointernal.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
internal.go Remove unnecessary storage config variables (#344) 2021-12-20 15:19:53 +01:00
internaltoas.go [security] Check all involved IRIs during block checking (#593) 2022-05-23 11:46:50 +02:00
internaltoas_test.go [feature] Web profile pages for accounts (#449) 2022-04-15 14:33:01 +02:00
internaltofrontend.go [bugfix] Fix existing bio text showing as HTML (#531) 2022-05-07 17:55:27 +02:00
util.go Pg to bun (#148) 2021-08-25 15:34:33 +02:00
wrap.go Remove unnecessary storage config variables (#344) 2021-12-20 15:19:53 +01:00
wrap_test.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00