Skip to content

Stats: Restore referrer spam action eligibility - #25904

Open
crazytonyli wants to merge 4 commits into
trunkfrom
bugfix/CMM-2315-referrer-spam-action
Open

Stats: Restore referrer spam action eligibility#25904
crazytonyli wants to merge 4 commits into
trunkfrom
bugfix/CMM-2315-referrer-spam-action

Conversation

@crazytonyli

@crazytonyli crazytonyli commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Fixes https://linear.app/a8c/issue/CMM-2315

This PR ports the legacy Stats' "can mark as spam" check:

var canMarkReferrerAsSpam: Bool {
if let url = disclosureURL {
return url.absoluteString.contains(name)
} else {
return name.contains(".")
}
}

With this change, the Search Engine referrers no long show the "Mark as Spam" button. The other sites (which may be spam) shows the button.

spam.mp4

Also, added a footer text to explain what "Mark as Spam" does.

@crazytonyli
crazytonyli requested a review from jkmassel August 18, 2026 02:40
@crazytonyli crazytonyli added this to the 27.3 milestone Aug 18, 2026
@crazytonyli
crazytonyli marked this pull request as ready for review August 18, 2026 02:41
@wpmobilebot

wpmobilebot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor
App Icon📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
App NameWordPress
ConfigurationRelease-Alpha
Build Number33807
VersionPR #25904
Bundle IDorg.wordpress.alpha
Commitdfe8920
Installation URL28j6ujo6gs638
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@wpmobilebot

wpmobilebot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor
App Icon📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
App NameJetpack
ConfigurationRelease-Alpha
Build Number33807
VersionPR #25904
Bundle IDcom.jetpack.alpha
Commitdfe8920
Installation URL7aahdrc30im98
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@wpmobilebot

Copy link
Copy Markdown
Contributor

🤖 Build Failure Analysis

This build has failures. Claude has analyzed them - check the build annotations for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants