gotosocial/internal/db/bundb
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
..
migrations [performance] Add further indexes to mitigate laggy queries (#586) 2022-05-18 15:58:26 +01:00
account.go [performance] Speed up some of the slower db queries (#523) 2022-05-02 11:53:46 +01:00
account_test.go
admin.go
admin_test.go
basic.go
basic_test.go [chore] Timeline test updates (#578) 2022-05-16 18:48:59 +02:00
bundb.go [feature] implement custom_emojis endpoint (#563) 2022-05-20 10:34:36 +02:00
bundb_test.go
bundbnew_test.go
conn.go [performance] Speed up some of the slower db queries (#523) 2022-05-02 11:53:46 +01:00
domain.go [security] Check all involved IRIs during block checking (#593) 2022-05-23 11:46:50 +02:00
domain_test.go [performance] Speed up some of the slower db queries (#523) 2022-05-02 11:53:46 +01:00
emoji.go [feature] implement custom_emojis endpoint (#563) 2022-05-20 10:34:36 +02:00
emoji_test.go [feature] implement custom_emojis endpoint (#563) 2022-05-20 10:34:36 +02:00
errors.go
instance.go
media.go [feature] Unused avatar and header cleanup (#574) 2022-05-15 15:45:04 +01:00
media_test.go [feature] Unused avatar and header cleanup (#574) 2022-05-15 15:45:04 +01:00
mention.go
mention_test.go
notification.go
notification_test.go
relationship.go [performance] Speed up some of the slower db queries (#523) 2022-05-02 11:53:46 +01:00
relationship_test.go [performance] Speed up some of the slower db queries (#523) 2022-05-02 11:53:46 +01:00
session.go
session_test.go
status.go [performance] Speed up some of the slower db queries (#523) 2022-05-02 11:53:46 +01:00
status_test.go
timeline.go
timeline_test.go
trace.go [performance] Speed up some of the slower db queries (#523) 2022-05-02 11:53:46 +01:00
util.go