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?

13 comments

  1. [10]
    unknown user
    Link
    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...

    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.

    13 votes
    1. [8]
      Deimos
      Link Parent
      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...

      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.

      13 votes
      1. [3]
        Comment deleted by author
        Link Parent
        1. [2]
          Deimos
          Link Parent
          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).

          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).

          2 votes
          1. [2]
            Comment deleted by author
            Link Parent
            1. Deimos
              Link Parent
              Nothing too exciting, just a ridiculous argument.

              Nothing too exciting, just a ridiculous argument.

              4 votes
      2. [5]
        Askme_about_penguins
        Link Parent
        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?

        Reddit will leave these giant chains of "[deleted]" or "[removed]" comments, even if the whole branch gets deleted/removed.

        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?

        1. [4]
          Deimos
          Link Parent
          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).

          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).

          1. [2]
            Comment deleted by author
            Link Parent
            1. Deimos
              Link Parent
              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.

              You can prevent it by keeping the site private.

              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.

              3 votes
          2. [2]
            Askme_about_penguins
            Link Parent
            What about deleted comments (instead of removed)?

            What about deleted comments (instead of removed)?

            1. Deimos
              Link Parent
              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...

              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.

              3 votes
  2. [2]
    Soptik
    (edited )
    Link
    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...

    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)?

    1. super_james
      Link Parent
      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...

      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.

      4 votes
  3. Whom
    Link
    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...

    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...)