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

Add ability to leave replies to existing comments #27

Merged
merged 2 commits into from
Oct 5, 2018
Merged

Add ability to leave replies to existing comments #27

merged 2 commits into from
Oct 5, 2018

Conversation

WiechersV
Copy link
Contributor

This PR addresses the issue in #17
We can separate comments in 2 categories: Comment and Reply.

Every Reply is a Comment, but the inverse is not true.

Also, a Reply cannot have replies and must belong to a Comment, which may have from 0 to N replies. ( IMHO, using the "side-comments" format, makes no sense to have more than 1 level of nesting, that's why a Reply can't be replied, but this can be discussed )

A Reply, and a Comment with no replies can be normally deleted and removed from the list, however, a Comment with at least one Reply, can be deleted, but cannot be removed. To do so, I've used the flag deleted, that will display the message "Comment deleted by the author". This was the trickier part to solve for me and it's entirely open to discussion.

Cheers ;)

@solhuebner
Copy link

What do the rest think about this?

@WiechersV
Copy link
Contributor Author

It's been working quite well for me on Scribe

@blackjid
Copy link

@aroc are you going to merge this PR? it looks awesome!

@aroc aroc merged commit 0dcbad3 into aroc:master Oct 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants