gotosocial/internal/db
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
..
bundb [security] Check all involved IRIs during block checking (#593) 2022-05-23 11:46:50 +02:00
account.go [feature] Web profile pages for accounts (#449) 2022-04-15 14:33:01 +02:00
admin.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
basic.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
db.go [feature] implement custom_emojis endpoint (#563) 2022-05-20 10:34:36 +02:00
domain.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
emoji.go [feature] implement custom_emojis endpoint (#563) 2022-05-20 10:34:36 +02:00
error.go [feature] add authorization to the already-existing authentication (#365) 2022-02-07 12:04:31 +01:00
instance.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
media.go [feature] Unused avatar and header cleanup (#574) 2022-05-15 15:45:04 +01:00
mention.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
notification.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
params.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
relationship.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
session.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
status.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
timeline.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00