Skip to content

fix(comments): hide pingbacks and trackbacks from the public endpoint - #122

Merged
ssavutu merged 1 commit into
mainfrom
fix/hide-pingbacks-from-public-comments
Jul 31, 2026
Merged

fix(comments): hide pingbacks and trackbacks from the public endpoint#122
ssavutu merged 1 commit into
mainfrom
fix/hide-pingbacks-from-public-comments

Conversation

@ssavutu

@ssavutu ssavutu commented Jul 31, 2026

Copy link
Copy Markdown
Member

adminCommentConditions has excluded pingbacks and trackbacks since the media-library work, which left GetApprovedCommentsByArticleSlug as the one place they still surfaced. This closes that gap with the same predicate, so the two paths agree.

They are automated link notifications rather than anything a reader wrote. In the migrated WordPress data they are also almost entirely SEO spam — 155 rows, all carrying comment_approved = '1', sourced from:

blackboardhub.com          9
blackboardlist.com         6
pennsec.org                5
weddingdressesideas.com    3
bcagolftournament.com      2
garciniacambogia-reviews.org
deer-antlerspray.net

Rows stay in the table; nothing renders them.

Companion to DrexelTriangle/wordpress-etl — the ETL change re-statuses the ~895 spam comments that WordPress itself approved. This PR handles the ones that were never comments to begin with, and needs no reseed to take effect.

go build, go vet, and go test ./... clean.

🤖 Generated with Claude Code

adminCommentConditions has always excluded them, which left
GetApprovedCommentsByArticleSlug as the one place they still surfaced.
They are automated link notifications rather than anything a reader
wrote, and in the migrated WordPress data they are almost entirely SEO
spam: 155 rows sourced from domains like weddingdressesideas.com and
garciniacambogia-reviews.org, every one of them approved by WordPress.

Same predicate as the admin path, so the two agree. Rows stay in the
table.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@ssavutu
ssavutu merged commit 013936a into main Jul 31, 2026
6 checks passed
@ssavutu
ssavutu deleted the fix/hide-pingbacks-from-public-comments branch July 31, 2026 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant