From e670c32a9147f632d06ee10c170201677ec1e12d Mon Sep 17 00:00:00 2001 From: Tobi Smethurst <31960611+tsmethurst@users.noreply.github.com> Date: Mon, 24 May 2021 18:49:48 +0200 Subject: Faves (#31) * start on federating faves * outbound federation of likes working --- internal/typeutils/converter.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'internal/typeutils/converter.go') diff --git a/internal/typeutils/converter.go b/internal/typeutils/converter.go index 63e201ded..3ced20926 100644 --- a/internal/typeutils/converter.go +++ b/internal/typeutils/converter.go @@ -126,6 +126,9 @@ type TypeConverter interface { // AttachmentToAS converts a gts model media attachment into an activity streams Attachment, suitable for federation AttachmentToAS(a *gtsmodel.MediaAttachment) (vocab.ActivityStreamsDocument, error) + + // FaveToAS converts a gts model status fave into an activityStreams LIKE, suitable for federation. + FaveToAS(f *gtsmodel.StatusFave) (vocab.ActivityStreamsLike, error) } type converter struct { -- cgit v1.2.3