Hi, I really like the idea of this module and would love to use it instead of Disqus. However, I've installed it on Drupal 8.5.x and although if I display the comments, the react comment form loads, there's a few problems I encounter:

When viewing my article anonymous:
The form only has a comment input, no name or e-mail.
Typing something and clicking post shows a successful POST to the comments REST API. However, the spinner never stops spinning and there's no feedback that the post has been made. Refreshing the page after doesn't show the comment either.
Posting as a LU changes the avatar to a default Gravatar (because there's now an e-mail associated) and the button says "Post as user". However, this results in the same never ending spinner.

I don't see any errors in the console or dblog. Is there something that I'm supposed to do besides turning on the module? I've installed the module itself using composer.

Thanks!

Comments

Kingdutch created an issue. See original summary.

void--’s picture

Hmm, when you enable the module it should import all the necessary config... are there any errors in the drupal logs? What does the response payload look like for the successful post requests? What do your user permissions look like for creating comments?

kingdutch’s picture

So I had to reinstall to try this out again. In the process I figured out my problem because the first thing I did was go through the permissions again to see what they would've been set-up like.

This time it worked!

The thing that confused me is that the "Join the discussion" field is shown even if anonymous users do not have the "Post comments" permission (which isn't set by default I think). If I give the anonymous user that permission only then do the "Login to comment" and "Post anonymously" buttons show up.

I'd expect the "Login to comment" button to always show up for anonymous users (and I'd personally like to be able to disable it altogether). I'd also expect the "Join the discussion" field to only show up with the name field of the anonymous user.

Should we change this to a bug report?

kingdutch’s picture

Minor addition which I think is understandable for the first iteration of this module: It looks like the module does not yet respect the "Anonymous commenting" comment field configuration.

  • void-- committed f4f5b00 on 8.x-1.x
    Issue #2979959: Where are the e-mail/name fields?
    
void--’s picture

Category: Support request » Bug report
Status: Active » Fixed

Awesome thanks for figuring that out! I've removed the post button for users without the `post comments` permission (a la disqus), and made sure that the "log in to comment" button shows up... we might make this configurable down the road if there's demand for it, but I like the idea of a relatively uniform UX across sites, so no promises :)

void--’s picture

Oh, and can you explain what you mean by "anonymous commenting" comment field configuration? Are you just referring to permissions, or is there something else I don't know about?

kingdutch’s picture

For a node type article I see on the comment field configuration page: /admin/structure/types/manage/article/fields/node.article.comment (Edit comment field) the attached image.

This is only visible after I've enabled the module. From quick testing earlier it seemed that that setting did nothing for this module even though I think it's useful to force users to leave a name/email or make that optional (or disallow altogether).

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

void--’s picture

Okay finally found time to get this working -- the app now honors comment field anonymous settings.