New comments do not trigger the create event
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3225519. -->
Reported by: [s_castro](https://www.drupal.org/user/3655976)
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>Hi,<br>
I'm trying to set up DANSE and Push Framework using this guide (<a href="https://www.drupal.org/project/danse/issues/3194666">How to Set Up DANSE & Push Framework</a>). My objective is almost similar to the author but I just want to allow the users to subscribe to a post when it gets commented. I followed all the steps as the guide but I changed the configuration made in step 3 to achieve my objective. The configuration I made for step 3 is the next:</p>
<ol>
<li>Go to Admin Menu > Structure > Content Types > [the one I want]</li>
<li>Check the "Create event" for comment (since I want DANSE to create an event when the post gets commented).</li>
<li>Select the desired roles for "Allow individual entity subscription".</li>
</ol>
<p>Then I go to a post and add a comment, but when I go to the DANSE events (log) I cannot see any new event for the new comment.</p>
<p>I tried to debug the flow for the event creation and I couldn't find any path to create a comment event following the hooks implemented in the danse_content.module file. I also notice that the constant TopicInterface::COMMENT is never used on the Content.php file for getting the topics for an entity.</p>
<p>Maybe I'm missing some configuration or there is something missing in the code.</p>
<p>Thank you for your help in advance.</p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<ol>
<li>Follow the exact same steps as the guide (<a href="https://www.drupal.org/project/danse/issues/3194666">How to Set Up DANSE & Push Framework</a>).</li>
<li>In step 3 do the next instead:<br>
<ol>
<li>Go to Admin Menu > Structure > Content Types > [the one I want].</li>
<li>Check the "Create event" for comment.</li>
<li>Select the desired roles for "Allow individual entity subscription".</li>
</ol>
</li>
<li>Go to a post from the same content type configured and add create a comment.</li>
</ol>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<h3 id="summary-ui-changes">User interface changes</h3>
<h3 id="summary-api-changes">API changes</h3>
<h3 id="summary-data-model-changes">Data model changes</h3>
issue