Ghost and Discourse Integration - Is my Understanding Correct?

Thanks to @Raki , I was able to fix the issues in my Integration working. I have followed the steps here, But, maybe my understanding is incorrect.
The main purpose of Integrating Ghost and Discourse is for us to use Discourse for some form of moderation.
My Understanding is:

  1. When a comment is posted in GHOST, it SHOULD appear (appers) in DISCOURSE where the conversation can then continue.
  2. When the comment appears, it creates a Corresponding Thread for the article in DISCOURSE.
  3. IF moderation is enabled in DISCOURSE, the Discourse admin can then flip the visibility.
  4. The Comment Thread will only appear ON DISCOURSE not GHOST.

WHAT is Currently Happening

  1. Comments posted in GHOST, are instantly visible on GHOST.
  2. Comments are NOT appearing on DISCOURSE.
  3. Being that Comments are not appearing on DISCOURSE, Threads are not being Created.
    QUESTION:
    What is the purpose of the Integration assuming I did everything correctly?
  4. How do I get it to work so that, the comments appear on DISCOURSE to allow some form of moderation.
    Here is the site.
    https://ogatutor.com
    Discourse site: https://teachmeai.ogatutor.com

You’ll need to disable Ghost comments, since you’re using Discourse for comments :slight_smile:

Using https://ogatutor.com/what-is-chatgpt/ as a reference, I see that the Ghsot comments are loading, but not the Discourse embed - which to me sounds like the Discourse integration isn’t set up on the Ghost side.

1 Like

Please what am I missing? Is there anything else I am supposed to activate on the Ghost side?
I already updated the Post.hbs with the snippet generated by Discourse
like this:

            <div id='discourse-comments'></div>

<script type="text/javascript">
    if (window.location.pathname.indexOf('/p/') < 0) {
        DiscourseEmbed = {
            discourseUrl: 'https://teachmeai.ogatutor.com/',
            discourseEmbedUrl: '{{url absolute="true"}}'
        };

        (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);
        })();
    }
</script>
type or paste code here

Absolutely, something is not working correctly, but I followed everything in the in the Guide.
I am thinking, there is a missing step on Ghost side of the set up.
Please what did I miss to implement?

I checked the code and the discourse code is not there.
Are you sure the the active theme contains the updated post.hbs? Maybe you can download the active theme and check it

1 Like

Thanks for checking but it is there.

 <script type="text/javascript">
  DiscourseEmbed = {
    discourseUrl: 'https://teachmeai.ogatutor.com/',
    discourseEmbedUrl: 'link href="https://teachmeai.ogatutor.com/" rel="canonical"' https://ogatutor.com/ai-is-better-understood-as-learned-intelligence/'
    
    // className: 'CLASS_NAME',
  };

  (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);
  })();
</script>

The problem is that, it seems it is being skipped.
Can you please look again?
Thanks

It seems to be working for me! But I did get rate-limited a couple times, and the first time showed an error.