9
votes
How does the comment removing work?
Someone posted comment, I wrote a response (here), but when I wanted to send it, I got this message: Comment not found (or it was deleted)
. After I refreshed, the comment was gone, not even something like [deleted comment]
.
Do someone know how the comment removing work?
I think it works like reddit - if anyone's replied to a comment before it gets deleted, it gets replaced by a placeholder
Comment deleted by author
, but if there aren't any replies, it just disappears.That's right—if the comment has replies, some sort of marker needs to be left behind so that the structure of the comment tree doesn't get messed up.
Tildes does it a little better than reddit though, since it's able to "clean up" a whole branch of comments if they all end up getting deleted. Reddit will leave these giant chains of "[deleted]" or "[removed]" comments, even if the whole branch gets deleted/removed.
Probably, but I think then it would probably need to be replaced with some other method of indicating that comments were removed in the thread (maybe something in the topic log).
Nothing too exciting, just a ridiculous argument.
That is quite frustrating to find.
By the way, will certain pages allow people to see removed comments from Tildes like ceddit for reddit and similars?
I have no idea. In theory it will be possible for those types of sites to be created (there's not really any way to prevent it).
Not really, anyone with an account could already be scraping everything. It's a bit harder without a proper API, but not difficult to just scrape the HTML and extract the data.
What about deleted comments (instead of removed)?
There's no technical difference. A comment was there, then it's not. If something captured it while it was visible, it doesn't matter if it was deleted, removed, edited, or any other method of changing it.
I tested it and that's exactly what happened: https://tildes.net/~test/3zr/comment_deletion_test
I posted a comment, deleted it and
comment deleted by author
was there. But when I refreshed the comment was gone. So I assume it's hidden for non-high-trust-users (so for everyone as there is no trust system yet)?The comment deleted by author text is inserted by javascript in response to sending a delete message to the server. None of this re-loads the page it's all via js.
So the delete behaviour server side & how the post-delete data gets rendered on a page reload is totally different bit of code.
That was probably me, it had a message saying the comment is deleted but any trace of it that I can access is gone.
(edit: Oops didn't see your comment, I didn't add anything of worth but I don't want to delete again on you...)