#2699 closed defect (bug) (fixed)
wordpress blog spam comments are showing up in buddypress activity stream
| Reported by: | bizybee | Owned by: | DJPaul |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.5 |
| Component: | Core | Version: | |
| Severity: | Keywords: | blog comment activity | |
| Cc: |
Description
There's a topic on this in the buddypress.org troubleshooting forum.(1)
WordPress blog comments that are auto-spammed (from the comment-blacklist under discussion settings), are showing up in the activity stream.
I think the problem lies in this: buddypress checks the comment's approval status in bp_blogs_record_comment(), (see changeset [3153]), but BP treats the value as a boolean. However, the wp function 'wp_allow_comment' which sets the comment_approved field has three return values: 0,1, and 'spam', and the boolean value of the string 'spam' is true.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
(In [3332]) Stop spam comments appearing in activity stream. Fixes #2699, props bizybee (trunk)