Skip to content

JSON Export: Not exporting pinned posts #112

@sandrockcstm

Description

@sandrockcstm

Describe the bug

Currently, when a user exports their data via JSON, posts in a collection which are pinned are not included in the exported JSON file. This behavior is absent from the txt and csv exports (but IS present for the Prettified export).

Steps to reproduce (if necessary)

Steps to reproduce the behavior:

  1. Create a post.
  2. Click on "pin" from that collection's page (i.e. domain-name/my-cool-blog)
  3. Go to domain-name/me/export.
  4. Click "JSON" or "Prettified" and download the file.
  5. Open the JSON file. The pinned post will be missing from that collection's posts value (the array will be empty if there are no unpinned posts in that collection).

Expected behavior

All posts should be included in the posts array, regardless of its pinned_position value.

Application configuration

  • Multi-user mode
  • Mysql
  • Open registration? Yes
  • Federation enabled? Yes

Version or last commit: 0.9.1

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions