Page MenuHomewrite.as

Pinned Posts not in Retrieve Collection Posts Endpoint
Open, NormalPublic

Description

Overview

When you use the API to retrieve a collection's posts, the pinned posts are not in that returned list.

Background

Trying to help a user with pinned posts (context) - it occurred when using the WriteFreely API to retrieve all of a collection's posts, post them to a Write.as collection, and then iterating through the pinned posts' slugs like so:

list = [about, contact, support, archive]

for x in list:
    post = c.retrieveCPost('collection', x)

[...]

The error was that the posts could not be found in the Write.as collection, meaning that the pinned posts did not transition over.

Users

Bix

Implementation

If resolved, it could lead to a reconsideration of the way we handle pinned posts, both with the API endpoint and in the UX for the end user.

Event Timeline

cjeller created this task.Mon, Aug 26, 11:13 PM
matt added projects: WriteFreely, Restricted Project.Tue, Aug 27, 12:00 AM