summaryrefslogtreecommitdiff
path: root/internal/typeutils/converter.go
diff options
context:
space:
mode:
authorLibravatar Blackle Morisanchetto <isabelle@blackle-mori.com>2022-09-02 06:11:43 -0400
committerLibravatar GitHub <noreply@github.com>2022-09-02 12:11:43 +0200
commitbf9d1469871599b71327487cfdfe0aab9763d019 (patch)
treeb944ac337c33c2b84b2921337c55b2b8322a9370 /internal/typeutils/converter.go
parent[performance] cache account db lookups by public key URI (#795) (diff)
downloadgotosocial-bf9d1469871599b71327487cfdfe0aab9763d019.tar.xz
[feature] Federate custom emoji (outbound) (#791)
* Federate local custom emoji * Add test for converting a status with tags to AP
Diffstat (limited to 'internal/typeutils/converter.go')
-rw-r--r--internal/typeutils/converter.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/typeutils/converter.go b/internal/typeutils/converter.go
index 155266968..6996599ae 100644
--- a/internal/typeutils/converter.go
+++ b/internal/typeutils/converter.go
@@ -144,6 +144,8 @@ type TypeConverter interface {
FollowToAS(ctx context.Context, f *gtsmodel.Follow, originAccount *gtsmodel.Account, targetAccount *gtsmodel.Account) (vocab.ActivityStreamsFollow, error)
// MentionToAS converts a gts model mention into an activity streams Mention, suitable for federation
MentionToAS(ctx context.Context, m *gtsmodel.Mention) (vocab.ActivityStreamsMention, error)
+ // EmojiToAS converts a gts emoji into a mastodon ns Emoji, suitable for federation
+ EmojiToAS(ctx context.Context, e *gtsmodel.Emoji) (vocab.TootEmoji, error)
// AttachmentToAS converts a gts model media attachment into an activity streams Attachment, suitable for federation
AttachmentToAS(ctx context.Context, a *gtsmodel.MediaAttachment) (vocab.ActivityStreamsDocument, error)
// FaveToAS converts a gts model status fave into an activityStreams LIKE, suitable for federation.