Problem/Motivation

Current "Spam List" (provided by nobotiq_spam_protection) only shows basic information about the spam status. To make the moderation process more efficient, administrators need more context about the content being flagged without leaving the list page.

Specifically, seeing the creation date of the related entity and its teaser (view mode) provides immediate insights into whether the content is legitimate or automated spam.

Proposed changes

This update introduces new Views field handlers to pull data from the related entities (Nodes, Users, etc.) associated with the spam protection record:

Improved Entity Label: Updated the label output to use the native ->label() method for better compatibility and consistency.

Related Entity Created Date: Added a new Views field handler spam_protection_status_related_entity_created to display when the flagged content was created.

Related Entity Teaser: Added a new Views field handler spam_protection_status_related_entity_teaser to render the related entity using the 'teaser' view mode.

Views Data Integration: Exposed these new fields to Views via hook_views_data().

Configuration Update: Updated the default Spam List view configuration to include these fields by default.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

yurii novak created an issue. See original summary.

voleger’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • voleger committed d0c1275e on 1.0.x authored by yurii novak
    feat: #3581845 Expand Spam List view with related entity details (label...

Status: Fixed » Closed (fixed)

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