Comments (2)
Thanks for reporting this. Can you share a bit more about your use case, so I can understand why you might want pinned posts at that endpoint? Right now, it's designed to only provide a feed of posts.
from writefreely.
My use case was that I wanted to have a WriteFreely blog where the content is externally managed: as in, have a directory full of markdown files, which a script would sync to my WriteFreely instance, add them to the relevant collections, pin them if necessary, and so on. Part of this sync was deleting obsolete posts. I originally wanted to implement this by listing posts in the main collection (I only used one), but ran into this problem, that pinned posts weren't listed there, so I couldn't delete obsolete ones (I did not wish to keep track of post IDs already posted: everything that's not in the source repo should be considered obsolete, and to be deleted).
I eventually switched to /api/me/posts
, which did list the pinned ones too, and worked in my case (I had a single user, with a single collection). It would have been a lot more annoying if I had multiple users - still doable, but more annoying.
This particular case would be nicely supported if /api/collections/{collection}/posts
would take a pinned=true
query parameter, because then the use case would work for collections that have posts from multiple users, too.
from writefreely.
Related Issues (20)
- Server error when accessing tags page HOT 2
- Web internal error render HOT 2
- ActivityPub cross-platform compatibility with Lemmy broken
- Posts do not show up in a blog/feed view for other users. HOT 3
- Unable to use socket file for HTTP with `--init-db` nor `db migrate` HOT 1
- [Federation] Subscribers -> Followers shows empty handle HOT 1
- Custom CSS Not Working HOT 1
- changing max_blogs setting from 1 to N does not make the new blog option available HOT 2
- Bad display of blogs' pages with too much posts for only one page HOT 1
- Argh! Update from 0.13.2 to 0.14.0 made everything "dark mode"—how to get back to beautiful black-on-white text?! HOT 3
- website signup is not working. HOT 1
- Add Contents HOT 1
- How to set multiple rel="me" links in blog verification? HOT 3
- API docs and the live API disagree HOT 9
- Planned post are not published to the fediverse, mentions are not working HOT 1
- API: getting one blog does not accept ?body=html, but getting all blogs does HOT 1
- Tag URL produces server error unless user is logged in HOT 5
- "Page not found." if you want to call up individual posts HOT 4
- poeditor localization disabled? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from writefreely.