diff options
author | 2023-04-06 13:16:53 +0200 | |
---|---|---|
committer | 2023-04-06 12:16:53 +0100 | |
commit | 4f322f527f6c6e043f9efa13034fed1dbd35f1eb (patch) | |
tree | 0ae8f7949ab691827040de5c24b9dd6f84650c5a /internal/processing | |
parent | [bugfix] Add proper constraints on status faves, dedupe (#1674) (diff) | |
download | gotosocial-4f322f527f6c6e043f9efa13034fed1dbd35f1eb.tar.xz |
[bugfix] Always serialize orderedItems as array (#1673)
Diffstat (limited to 'internal/processing')
-rw-r--r-- | internal/processing/fedi/collections.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/processing/fedi/collections.go b/internal/processing/fedi/collections.go index 28b22f566..00367b65d 100644 --- a/internal/processing/fedi/collections.go +++ b/internal/processing/fedi/collections.go @@ -25,6 +25,7 @@ import ( "net/url" "github.com/superseriousbusiness/activity/streams" + "github.com/superseriousbusiness/gotosocial/internal/ap" "github.com/superseriousbusiness/gotosocial/internal/db" "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) @@ -172,7 +173,7 @@ func (p *Processor) FeaturedCollectionGet(ctx context.Context, requestedUsername return nil, gtserror.NewErrorInternalError(err) } - data, err := streams.Serialize(collection) + data, err := ap.SerializeOrderedCollection(collection) if err != nil { return nil, gtserror.NewErrorInternalError(err) } |