Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publishing posts via the API publishes them as drafts #462

Closed
sssilver opened this issue May 24, 2021 · 4 comments
Closed

Publishing posts via the API publishes them as drafts #462

sssilver opened this issue May 24, 2021 · 4 comments

Comments

@sssilver
Copy link

Describe the bug

When using the post publishing API, the published posts are not really "published", they are posted as drafts. From there, there appears to be no API for publishing a draft post.

Steps to reproduce (if necessary)

Steps to reproduce the behavior:

  1. Publish a writefreely post using the API
  2. Observe the post is created as a draft and is not visible to the public

Expected behavior

What should've happened?

  • The post should have been published, or the API should have supported a flag for publishing it

Application configuration

  • Single mode or Multi-user mode? Single mode
  • Database? [mysql/sqlite] sqlite3
  • Open registration? [yes/no] no
  • Federation enabled? [yes/no] no

Version or last commit: latest Docker image

@thebaer
Copy link
Member

thebaer commented May 24, 2021

Hi @sssilver, thanks for taking an interest in the WriteFreely API! Things are definitely a bit unconventional, but you can absolutely publish a blog post by hitting the Publish a Collection Post endpoint (blogs are internally called "collections"), instead of the Publish a Post endpoint.

If you publish a draft first, you'll simply move that draft to a blog / collection with our Move a Post endpoint.

I'll close this since it isn't a bug in the software. But if you have any questions, please feel free to join us on our forum!

@thebaer thebaer closed this as completed May 24, 2021
@sssilver
Copy link
Author

Thanks, this helps tremendously! Are the docs opensource? Should we amend the documentation to clarify this?

@thebaer
Copy link
Member

thebaer commented May 24, 2021

Yes, that'd be great! Please feel free to send a PR here: https://github.com/writeas/api-docs

@sssilver
Copy link
Author

I got a PR up at writeas/api-docs#7. What's the process for getting it reviewed and merged?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants