summaryrefslogtreecommitdiff
path: root/internal/messages/messages.go
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2024-08-12 16:23:24 +0000
committerLibravatar GitHub <noreply@github.com>2024-08-12 18:23:24 +0200
commit4cb3e4d3e690adf5f6a7ab1dad4d7757e2a2bdd2 (patch)
treef5c80979472ba757599bb56df5fe52665118ada0 /internal/messages/messages.go
parent[chore]: Bump golang.org/x/image from 0.18.0 to 0.19.0 (#3191) (diff)
downloadgotosocial-4cb3e4d3e690adf5f6a7ab1dad4d7757e2a2bdd2.tar.xz
[bugfix] incorrect AP serialize function used serializing worker data (#3196)
Diffstat (limited to 'internal/messages/messages.go')
-rw-r--r--internal/messages/messages.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/messages/messages.go b/internal/messages/messages.go
index d652c0c5c..73775b323 100644
--- a/internal/messages/messages.go
+++ b/internal/messages/messages.go
@@ -230,7 +230,7 @@ func (msg *FromFediAPI) Serialize() ([]byte, error) {
// Set serialized AP object data if set.
if t, ok := msg.APObject.(vocab.Type); ok {
- obj, err := t.Serialize()
+ obj, err := streams.Serialize(t)
if err != nil {
return nil, err
}