- 🇳🇱Netherlands eelkeblok Netherlands 🇳🇱
This too is fixed in 🐛 Fix reporting spam to Akismet Needs review .
The action "Report to Akismet and unpublish" is not working on comments. The comment is not sent to Akismet and the comment is not unpublished. Instead, this error is returned: "No access to execute Report to Akismet and unpublish on the Comment ...."
- Add the comment form to the list of Akismet forms in Akismet settings.
- Go to /admin/content/comment/, select a comment you want to mark as spam, choose "Report to Akismet and unpublish" in the Action seelct list and choose "Apply to selected items".
The problem is in the access function in UnpublishReportComment.php. The value set to $form_id is incorrect.
In hook 'comment_akismet_form_list' in akismet.module, the form_id is set to `'comment_' . $type->id() . '_form'`, but in the access function it is set to `'comment_' . $node->getEntityTypeId() . '_' . $node->bundle() . '_form'`, while this should be `'comment_' . $object->getTypeId() . '_form'`.
- fix bug
- test
- commit
None.
None.
None.
Closed: duplicate
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
This too is fixed in 🐛 Fix reporting spam to Akismet Needs review .