Skip to:
Content

BuddyPress.org

Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#902 closed enhancement (wontfix)

bp_send_message_button() should return false if logged-in member isn't a friend of the displayed user

Reported by: r-a-y's profile r-a-y Owned by:
Milestone: 1.1 Priority: minor
Severity: Version:
Component: Keywords:
Cc: jobjorn@…

Description

Jfcarter, in the following thread, makes a good point that the "Send Message" button should only be shown if the logged-in user is a friend of the displayed user.
http://buddypress.org/forums/topic/trying-to-stop-spam-email

On line 433 of /bp-messages/bp-messages-templatetags.php, edit the following line of:

	if ( bp_is_home() || !is_user_logged_in() )

to:

	if ( bp_is_home() || !is_user_logged_in() || !friends_check_friendship($bp->loggedin_user->id,$bp->displayed_user->id) )

This can help alleviate spam to some extent.

Change History (5)

#1 @DJPaul
16 years ago

I disagree and this sort of thing should wait until privacy controls are implemented - I certainly want strangers to be able to send me messages, but I can understand why someone else wouldn't.

#2 @plrk
16 years ago

  • Cc jobjorn@… added

I concur with DJPaul.

#3 @r-a-y
16 years ago

Understood. I'd like to see it as a configurable option as well in the upcoming privacy component.

Feel free to close this ticket.

#4 @DJPaul
16 years ago

  • Resolution set to wontfix
  • Status changed from new to closed

#5 @apeatling
15 years ago

  • Milestone changed from 1.0.4 to 1.1

Milestone 1.0.4 deleted

Note: See TracTickets for help on using tickets.