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

Post as draft #6

Open
mrvdb opened this issue Nov 23, 2018 · 6 comments
Open

Post as draft #6

mrvdb opened this issue Nov 23, 2018 · 6 comments
Labels
enhancement New feature or request

Comments

@mrvdb
Copy link
Collaborator

mrvdb commented Nov 23, 2018

If documents could be posted as drafts that would be very helpful. Both as a way to preview how things will get rendered, I find that I need to correct little things to get the rendering intended, and to have a bit more control on when the post goes federated.

I've looked in the write.as API, but it didn't seem obvious how to do that, perhaps I'm missing something.

@dangom
Copy link
Owner

dangom commented Nov 23, 2018

For previewing I submit posts anonymously. Provided you don't share the link, they are invisible and don't get federated.
I see qua.name has drafts instead of anonymous posts, so that's maybe the reason anonymous submissions don't make sense for you?

You could use write.as just for previewing, I guess:

(defun my-writefreely-preview-post ()
  (let ((writefreely-auth-token nil)
        (writefreely-instance-api-endpoint "https://write.as/api")
        (writefreely-instance-url "https://write.as"))
    (writefreely-publish-or-update) ;; Updates run async, so you may have to refresh your browser.
    (writefreely-visit-post)))

And once you are done you can call (writefreely-delete-post) and then (writefreely-publish-or-update).

@mrvdb
Copy link
Collaborator Author

mrvdb commented Nov 23, 2018

Yeah, there are a couple of subtle differences between write.as and writefreely, this is indeed one of them. (another one for example is the visit-post url on writefreely with the .md suffix actually delivers markdown, not the rendered post)

Another workaround I have been using is creating a 'Draft' collection which does not federate and post to that collection initially and once done moving it to the 'real' collection.

@mrvdb
Copy link
Collaborator Author

mrvdb commented Nov 23, 2018

After checking with Matt, on writefreely, 'drafts' are the same as 'anonymous' except you need to be logged on O_O

cfr. https://writing.exchange/@matt/101120929499911988

@mrvdb
Copy link
Collaborator Author

mrvdb commented Nov 25, 2018

How about recognizing if we are connecting to write.as or "the rest", where the text for "anonymous posts" collection on the latter is reworded as "-- drafts collection --" or something similar?

@dangom
Copy link
Owner

dangom commented Nov 25, 2018

Perhaps we could call it --post without collection--?!

@mrvdb
Copy link
Collaborator Author

mrvdb commented Nov 25, 2018

Hmm, wouldn't that make it more unclear for both situations? Neither the word 'anonymous' nor 'draft' is then in the text.

@dangom dangom added the enhancement New feature or request label Nov 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants