#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: |
|
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)
Note: See
TracTickets for help on using
tickets.
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.