1. Home
  2. Support

Can I remove the "@someone deleted this topic n seconds ago" message?

By Jason @detly2018-05-26 14:56:07.551Z

I tested out the comments on a local instance of my site. I ended up with:

  • A new topic (comments for page at ...)
  • Comments on this new topic

So I deleted the comments, and then (to see what happens) I deleted the topic. Now I have a seemingly permanent message at the bottom of the comments section:

I can't seem to get rid of it! Any ideas?

  • 3 replies
  1. KajMagnus @KajMagnus2018-05-26 15:36:29.780Z

    Currently no way to remove it. This is something I should fix

    Maybe deleted-page and undeleted-page messages, in embedded comments topics, should be shown to staff only, with a "this message visible to staff only" clarification. Then if you clicked "Tools" and then "Restore page", the @nnn deleted this topic message would disappear.

    Actually, what should happen, when an embedded comments page has been deleted. I suppose that, for normal visitors, no comments at all, should be shown. Just an empty iframe, as if there was no comments section? Showing any text like "Comments deleted" would look weird, I imagine. ... And the way the page looks now, with @nnn deleted this topics but the Reply button still visible, is even more weird :- P (this is a situation I hadn't thought about :- ))

    For admins, the deleted comments page could be shown, with the page-deleted message you're seeing now, + info that the page is visible to staff only, + a button to undelete the page?

    (If you want a quick workaround, you can set data-discussion-id="" to something else, on the <div class="talkyard-comments" ...>, and a new comments page will get used.)

    1. DJason @detly2018-05-26 22:03:35.587Z

      Well the intent wasn't to prevent comments, although I can see how someone might think it was. I just wanted to see what would happen. Note that I can still comment on a page which has had its topic deleted! It just seems to create another topic.

      I just discovered the "Tools > Restore topic" feature you mentioned, which at least makes it clearer. Personally I think it

      This is all a bit moot since I suspect my local comments won't show up when my site is accessed via its public URL (which is good). But it might be frustrating in the future.

      I can certainly see how it would be useful in a dedicated forum — you'd want users to know that a topic has disappeared for a reason, not just wonder what happened. And perhaps then undeletion needs to be flagged too. However, I'd suggest one of two things:

      • Show only deletion messages when the topic has not later been restored. That is, delete/restore messages should cancel out. If an admin restores a previously deleted topic, they could manually add a comment explaining what happened, or leave it and nothing will appear.

      • Allow admins to enter a public message when deleting or restoring a topic. If the message is empty, don't even show the deletion/restoration message.

      If the point of deleting an "embedded comments" topic is to block comments on an article, then:

      1. There's a bug, because it doesn't do this, and
      2. It might not be necessary, most static site generators that I know of have a flag in the post preamble that allows disabling comments by removing that part of the page altogether.

      These are just suggestions — a couple of admin messages appearing in the comments isn't a travesty for me.

      1. KajMagnus @KajMagnus2018-06-08 01:54:58.304Z

        Hi again!

        About commenting on deleted topic: Only staff can do that. I'm thinking maybe a moderator might want to 1) delete the topic, then 2) add a comment that explains to the other staff members, why s/he deleted the topic. (Deleted topics/discussions = only visible to staff b.t.w.)

        Ok thanks for the info that you were trying things out. I made a change, so when a topic gets deleted, there're now big letters "Discussion deleted" and the discussion gets crossed out with a large X cross. So now should be more obvious what has happened.

        Show only deletion messages when the topic has not later been restored

        ok yes good idea. I think that's the right thing to do, if the topic got restored within, say, 1 hour after it got deleted. ... If however it stayed deleted for 1 month, and then was restored — then I think in most cases, it'd be helpful to people to see the Deleted and Restored messages, so they'll know that it was gone for real for a while (and not that they visited the wrong page or something).

        [...] [adminis] could manually add a comment explaining what happened, or leave it and nothing will appear.
        [...] enter a public message when deleting or restoring a topic. If the message is empty, don't even show the deletion/restoration message.

        I think being able to delete the "Deleted ... Restored" messages, would suffice: admins can already add "bottom comments" that explain why they deleted / restored the topic.

        If the point of deleting an "embedded comments" topic is to block comments on an article, then:
        There's a bug, because it doesn't do this, and

        Ok, hmm, maybe there should be a message that only saff/admins can add comments to deleted topics. Or is at weird thing, to be able to do that at all, even if one is a staff member, hmm.

        most static site generators that I know of have a flag in the post preamble that allows disabling comments by removing that part of the page altogether.

        Yes, and at the same time, I think it's nice for admins to have a way to delete the discussion, without having to re-publish their site. Maybe they edit their blog and publish to GitHub/Netlify/etc, from their laptop at home only, ... then nice to then be able to quick-"kill" a discussion that derails, when on the subway, from their mobile phone.

        These are just suggestions — a couple of admin messages appearing in the comments isn't a travesty for me.

        Ok :-) & thanks for the suggestions (sorry for being a bit late with replying sometimes)