diff options
author | 2022-05-23 11:46:50 +0200 | |
---|---|---|
committer | 2022-05-23 11:46:50 +0200 | |
commit | 469da93678b3f738f65372d13dcd1ea7de390063 (patch) | |
tree | 33d6b5b9facd3cf242235fbfb5f9275051864923 /internal/ap/interfaces.go | |
parent | [docs] Add Caddy instructions to the documentation (#594) (diff) | |
download | gotosocial-469da93678b3f738f65372d13dcd1ea7de390063.tar.xz |
[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
Diffstat (limited to 'internal/ap/interfaces.go')
-rw-r--r-- | internal/ap/interfaces.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/ap/interfaces.go b/internal/ap/interfaces.go index 6edaa42ba..240d965ca 100644 --- a/internal/ap/interfaces.go +++ b/internal/ap/interfaces.go @@ -140,6 +140,11 @@ type Addressable interface { WithCC } +// ReplyToable represents the minimum interface for an Activity that can be InReplyTo another activity. +type ReplyToable interface { + WithInReplyTo +} + // CollectionPageable represents the minimum interface for an activitystreams 'CollectionPage' object. type CollectionPageable interface { WithJSONLDId |