[buddypress-trac] [BuddyPress] #2699: wordpress blog spam comments are showing up in buddypress activity stream

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Mon Nov 1 04:44:06 UTC 2010


#2699: wordpress blog spam comments are showing up in buddypress activity stream
---------------------+------------------------------------------------------
 Reporter:  bizybee  |       Owner:                       
     Type:  defect   |      Status:  new                  
 Priority:  normal   |   Milestone:  1.3                  
Component:  Core     |    Keywords:  blog comment activity
---------------------+------------------------------------------------------
 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/

-- 
Ticket URL: <http://trac.buddypress.org/ticket/2699>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list