You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, WriteFreelyClient.pinPost(postId: at position: in collectionAlias: completion:) and WriteFreelyClient.unpinPost(postId: from collectionAlias: completion:) take a single post ID String.
The client should be fixed to handle bulk pinning and unpinning, just like the API. This issue is classified a bug because it diverges from the API's behaviour.
(It may be a good idea to get #7 in place first before working on this.)
The text was updated successfully, but these errors were encountered:
AngeloStavrow
changed the title
Pinning/Unpinning a Post to a Collection should take an array of Posts as argument.
Pinning/Unpinning a Post to a Collection should replicate API's behaviour
Jun 30, 2020
Currently,
WriteFreelyClient.pinPost(postId: at position: in collectionAlias: completion:)
andWriteFreelyClient.unpinPost(postId: from collectionAlias: completion:)
take a single post IDString
.That's not in line with how the WriteFreely API works — both
/api/collections/{COLLECTION_ALIAS/pin
and/api/collections/{COLLECTION_ALIAS/unpin
take an array of objects ([{id: String, position: Int}]
for the former,[{id: String}]
for the latter).The client should be fixed to handle bulk pinning and unpinning, just like the API. This issue is classified a bug because it diverges from the API's behaviour.
(It may be a good idea to get #7 in place first before working on this.)
The text was updated successfully, but these errors were encountered: