Skip to:
Content

BuddyPress.org

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#2699 closed defect (bug) (fixed)

wordpress blog spam comments are showing up in buddypress activity stream

Reported by: bizybee Owned by: DJPaul
Milestone: 1.5 Priority: normal
Severity: Version:
Component: Core 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.

(1) http://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/comments-show-in-activity-regardless-discussion-settings/

Change History (3)

#1 @DJPaul
10 years ago

  • Owner set to DJPaul
  • Status changed from new to assigned

#2 @djpaul
10 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [3332]) Stop spam comments appearing in activity stream. Fixes #2699, props bizybee (trunk)

#3 @djpaul
10 years ago

(In [3333]) Stop spam comments appearing in activity stream. Fixes #2699, props bizybee (branch)

Note: See TracTickets for help on using tickets.