[feature] Accept incoming federated Flag activity (#1382)

* start working on handling incoming Flag activity

* interim commit

* federate Flag in successfully
This commit is contained in:
tobi
2023-01-25 11:12:27 +01:00
committed by GitHub
parent faeb7ded3b
commit 993aae5e48
11 changed files with 560 additions and 50 deletions

View File

@@ -157,6 +157,16 @@ type CollectionPageable interface {
WithItems
}
// Flaggable represents the minimum interface for an activitystreams 'Flag' activity.
type Flaggable interface {
WithJSONLDId
WithTypeName
WithActor
WithContent
WithObject
}
// WithJSONLDId represents an activity with JSONLDIdProperty
type WithJSONLDId interface {
GetJSONLDId() vocab.JSONLDIdProperty