Skip to:
Content

BuddyPress.org

Opened 7 years ago

Last modified 7 years ago

#7891 new enhancement

Need a filter for restricting activity comment/replies query

Reported by: sbrajesh's profile sbrajesh Owned by:
Milestone: Awaiting Contributions Priority: normal
Severity: normal Version: 3.0.0
Component: Activity Keywords: needs-patch
Cc: sbrajesh

Description

In BuddyPress, we don't have any way to modify which activity replies get fetched. If we enable Legacy query, It is feasible though.

I need a filter to allow restricting sql queries for fetching activity comments.

The method where I need it is BP_Activity_Activity::get_activity_comments()

I have been working on a moderation plugin that needs some activity comments to be hidden. Even when I set the hide_sitewide=1 for the "activity_comment" activity type, It is still viewable.

Providing a filter, like we have for activity query will be nice and allow manipulating the comments.

Also, is there anyway, we can enable activity comments to honour hide_sitewide=1. It will be a great help too.

Thank you for looking into it.

Change History (1)

#1 @boonebgorges
7 years ago

  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to Awaiting Contributions

Thanks for the ticket, @sbrajesh. A filter on this query should be fine. Could you prepare a patch please?

Also, is there anyway, we can enable activity comments to honour hide_sitewide=1. It will be a great help too.

Can you say more about this?

Note: See TracTickets for help on using tickets.