diff options
author | 2023-01-27 14:48:11 +0100 | |
---|---|---|
committer | 2023-01-27 14:48:11 +0100 | |
commit | 3283900b0d0b98e5ca956f61ce09ab373cf0cbe8 (patch) | |
tree | f7dc654ea2d510e0c02d63d8a174908f1e25c680 /internal/typeutils/converter.go | |
parent | [docs] Add Flag documentation to federation docs (#1393) (diff) | |
download | gotosocial-3283900b0d0b98e5ca956f61ce09ab373cf0cbe8.tar.xz |
[feature] Federate reports to remote instance as Flag (if desired) (#1386)
* reports federate out, we did it lxds
* fix optional line start (should be optional slash)
Diffstat (limited to 'internal/typeutils/converter.go')
-rw-r--r-- | internal/typeutils/converter.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/typeutils/converter.go b/internal/typeutils/converter.go index 33ed617e0..ec7b09f27 100644 --- a/internal/typeutils/converter.go +++ b/internal/typeutils/converter.go @@ -188,6 +188,8 @@ type TypeConverter interface { // // Appropriate 'next' and 'prev' fields will be created based on the highest and lowest IDs present in the statuses slice. StatusesToASOutboxPage(ctx context.Context, outboxID string, maxID string, minID string, statuses []*gtsmodel.Status) (vocab.ActivityStreamsOrderedCollectionPage, error) + // ReportToASFlag converts a gts model report into an activitystreams FLAG, suitable for federation. + ReportToASFlag(ctx context.Context, r *gtsmodel.Report) (vocab.ActivityStreamsFlag, error) /* INTERNAL (gts) MODEL TO INTERNAL MODEL |