Skip to:
Content

Opened 7 weeks ago

Last modified 5 weeks ago

#7891 new enhancement

Need a filter for restricting activity comment/replies query

Reported by: 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
5 weeks 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.