Post previews. #459

Closed
opened 2019-03-26 13:38:22 +00:00 by rinpatch · 10 comments
Member

Currently if I am writing a post in Markdown/HTML I have to DM it to myself before posting to make sure I did not mess anything up. It would be nice if pleroma-fe provided a button that would allow me to preview the post/the text before actually posting it.

As of now there is no endpoint in the backend that would render different content types to HTML, but I will to implement one if we reach an agreement.

Currently if I am writing a post in Markdown/HTML I have to DM it to myself before posting to make sure I did not mess anything up. It would be nice if pleroma-fe provided a button that would allow me to preview the post/the text before actually posting it. As of now there is no endpoint in the backend that would render different content types to HTML, but I will to implement one if we reach an agreement.
Member

text/plain should also have previews so that you can see how your emojis are rendered and if they are rendered correctly.

text/plain should also have previews so that you can see how your emojis are rendered and if they are rendered correctly.
Author
Member

@hj Yup, you are right.

Would an endpoint that you just dump the text be enough or would something like POST /api/v1/statuses with the only difference that the status card it renders is not actually real be prefered?

@hj Yup, you are right. Would an endpoint that you just dump the text be enough or would something like `POST /api/v1/statuses` with the only difference that the status card it renders is not actually real be prefered?
Member

I think rendering whole post data would be better - it would give ability to, for example show list or recipients in addition to post content.

I think rendering whole post data would be better - it would give ability to, for example show list or recipients in addition to post content.
Author
Member

Alright, I will report back when it's implemented

Alright, I will report back when it's implemented
Author
Member
@jaredr @hj the backend API was implemented https://docs-develop.pleroma.social/differences_in_mastoapi_responses.html#post-api-v1-statuses
Member

I will check the documentation and start working on this asap.

I will check the documentation and start working on this asap.
Member

image

@rinpatch As discussed, please let me know once you update the format to formData. :)

![image](/attachments/c9d80743-a424-4529-b27b-1a90207c5d55) @rinpatch As discussed, please let me know once you update the format to formData. :)
8.4 KiB
Author
Member

@jaredr I fixed it in pleroma!1013 so you should wait untill it is merged

@jaredr I fixed it in pleroma!1013 so you should wait untill it is merged
Member

@rinpatch I finished FE part. It works fine.

@rinpatch I finished FE part. It works fine.
Author
Member

@feld bump

@feld bump
Sign in to join this conversation.
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
pleroma/pleroma-fe#459
No description provided.