The autocomment when voting to close feature says:

Once the question is closed (even if it is not closed as a duplicate), these comments are deleted and the duplicate information is automatically edited into the question itself.

I'd suggest to check if a comment was edited, before deleting it this way. Sometimes I dislike the standard message and add additional information to it ... but unfortunately all I wrote gets deleted.


If you don't want the comment deleted, make sure it doesn't begin with "possible duplicate of"

  • Great ... that's what I am looking for – tanascius Apr 22 '10 at 8:32
  • 2
    Just curious: are all comments that start with "possible duplicate of" auto-deleted, even those that have not been added by the system? – Arjan Apr 22 '10 at 15:52
  • Is this a case-sensitive check? – Jon Seigel Apr 22 '10 at 17:27
  • 3
    That violates the Principle of Least Astonishment. How about not deleting the comment if it has been edited at all? That should be easy to check for -- just use the same check that displays the pencil icon. – Ether Apr 23 '10 at 1:02
  • @Ether: yes, I'd go with this implementation, too. Right now I have to remember to change the beginning of a comment to make it persistent. – tanascius Apr 27 '10 at 6:57
  • I don't think "make sure it doesn't begin with "possible duplicate of"" is true anymore? It seems that any comment that holds the word "duplicate" anywhere in the comment, is boldly deleted? I added a comment that referred to a duplicate of an example given in the question (so: I was not claiming the question itself was a duplicate), and that was also deleted when the question was closed. (cc. @tanascius) – Arjan Dec 9 '12 at 22:13
  • Today, an edited auto-comment of mine was left in place after closure. So: seems things have been fixed, and that it doesn't even matter if the edited comment still starts with "possible duplicate of". Nice. (cc. @tanascius) – Arjan Jan 13 '13 at 21:37
  • @arjan not sure, but it would be trivial to code, since there is an edit counter on comments, so.. if editcounter > 0 then ... – Jeff Atwood Jan 14 '13 at 17:24
  • Since the text of “possible duplicate of” comment has been change, does the code still check for hardcoded text? – Michael Freidgeim Nov 22 '20 at 9:37

...or, to avoid editing, simply make "Community" the owner of those comments? (Some would rather not have their name attached to such auto-comment, for some vote-privacy until the question is closed, and hence it's proven that others agree.)

  • But the name is already attached, isn't it? So this is a different proposal – tanascius Apr 22 '10 at 7:54
  • @tanascius, you're right, I added to avoid editing to clarify my point. – Arjan Apr 22 '10 at 7:55
  • Ok, I see ... this would help in the case you descibe - but not in all cases; for instance when I just add some more explainations why I voted to close and maybe even another link or something valuable – tanascius Apr 22 '10 at 7:58
  • @tanascius, I thought it would also help in the other cases, assuming only the auto-generated comment would be deleted, which you wouldn't be able to edit if those were owned by Community. And hence, you'd be forced to write your own comment. Now, given Jeff's answer, I wonder if all comments that start with "possible duplicate of" are auto-deleted, even those that have not been added by the system. – Arjan Apr 22 '10 at 15:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .