summaryrefslogtreecommitdiff
path: root/internal/typeutils/converter.go
diff options
context:
space:
mode:
authorLibravatar Tobi Smethurst <31960611+tsmethurst@users.noreply.github.com>2021-05-24 18:49:48 +0200
committerLibravatar GitHub <noreply@github.com>2021-05-24 18:49:48 +0200
commite670c32a9147f632d06ee10c170201677ec1e12d (patch)
tree08a49c9942529d3e7457a54b72d334ad36060976 /internal/typeutils/converter.go
parentfirst draft of Dockerfile (diff)
downloadgotosocial-e670c32a9147f632d06ee10c170201677ec1e12d.tar.xz
Faves (#31)
* start on federating faves * outbound federation of likes working
Diffstat (limited to 'internal/typeutils/converter.go')
-rw-r--r--internal/typeutils/converter.go3
1 files changed, 3 insertions, 0 deletions
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 {