@since: BuddyPress 2.5.0 Use $activity_type instead of $activity_name for the second parameter.
Description
bp_activity_can_comment

Filters whether a comment can be made on an activity item.

Source: bp-activity/bp-activity-template.php:3048