MLH-Fellowship / SocioMark

A social media platform that lets you upload images and secures them by embedding a personalised hash.
https://sociomark.netlify.app
MIT License
15 stars 8 forks source link

Edit Post in Post.js #85

Closed aitikgupta closed 3 years ago

aitikgupta commented 3 years ago

One can edit their post's description, need frontend for that.

suhanichawla commented 3 years ago

@aitikgupta I'd like to work on this issue

aitikgupta commented 3 years ago

@suhanichawla sure, go ahead :)

The relevant entrypoint for frontend is- https://github.com/MLH-Fellowship/SocioMark/blob/39eb2f05a1a2da1ca6f6dfee388474da737c6a57/frontend/src/Components/Post/Post.js#L158

And for backend is - https://github.com/MLH-Fellowship/SocioMark/blob/39eb2f05a1a2da1ca6f6dfee388474da737c6a57/backend/app/server/routes/post.py#L39-L43

aitikgupta commented 3 years ago

Note that you will need to break down updated_post (see UpdatePostModel) to send a description: str = Form(None) from the frontend. See this for more information: https://github.com/MLH-Fellowship/SocioMark/blob/39eb2f05a1a2da1ca6f6dfee388474da737c6a57/backend/app/server/models/post.py#L21-L29