Fix reporting spam to Akismet

Created on 19 April 2021, almost 4 years ago
Updated 9 April 2023, about 2 years ago

Problem/Motivation

While working on #3198393: Automated tests are currently failing , I found the features to report comments and nodes being deleted as spam do not work. akismet.module contains akismet_form_comment_multiple_delete_confirm_alter() and akismet_form_node_multiple_delete_confirm_alter() which are meant to add options to the bulk delete conformation forms to report the comments as spam to akismet. However, this does not work, presumably because the code was ported from D7 and naming has changed.

Steps to reproduce

(For comments, nodes is similar).

  • Create some comments
  • Go to admin/content/comment
  • Select the comments
  • Select the option 'Delete comments'
  • Apply the selection
  • Notice that the confirmation form does not show options to report the comments

Proposed resolution

Make sure the existing code does as it is intended again.

Remaining tasks

  • Re-enable code
  • Re-enable relevant parts in ReportingTest
  • Re-enable/fix ActionsTest
  • Review
  • Merge

User interface changes

The reporting options will be available in deletion confirmation forms.

API changes

None.

Data model changes

None.

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇳🇱Netherlands eelkeblok Netherlands 🇳🇱

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024