Skip to content

Proposal: Add support for comments powered by Discourse #738

Closed

Description

@balloob

For Home Assistant we use Discourse for commenting. Discourse is open source forum software. The way it works is similar to how Facebook commenting works: you load a piece of JavaScript[1] and it will allow people to comment (example).

Would a pull request be accepted that adds support for configuring Discourse comments for Docusaurus blog posts?

I would structure it similarly to how the existing Docusaurus FB comments feature is done (source).

[1]: Code looks like this:

  DiscourseEmbed = { discourseUrl: 'https://community.home-assistant.io/',
                     discourseEmbedUrl: 'URL OF PAGE THAT IS BEING EMBEDDED' };
  (function() {
    var d = document.createElement('script'); d.type = 'text/javascript'; d.async = true;
    d.src = DiscourseEmbed.discourseUrl + 'javascripts/embed.js';
    (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(d);
  })();

Activity

  1. added
    feature
    on Jun 7, 2018
  2. JoelMarcey commented on Jun 8, 2018

    @JoelMarcey
    Contributor

    Hi @balloob Thanks for the feature request. We have add other issues discuss this too:

    #667
    #219

    I would definitely be willing to review a PR. Does it prevent spam well?

  3. balloob commented on Jun 8, 2018

    @balloob
    ContributorAuthor

    People can host their own copy and set up user registration as they like. We have it set up with email verification as a requirement before posting and have not seen any spam.

  4. endiliey commented on Aug 28, 2018

    @endiliey
    Contributor

    I will close this since we already have FB comment for v1. On v2 user can extends their own layout and write React component so this is up to the user

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions