Opened 7 years ago
Last modified 7 years ago
#7891 new enhancement
Need a filter for restricting activity comment/replies query
Reported by: |
|
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.
Thanks for the ticket, @sbrajesh. A filter on this query should be fine. Could you prepare a patch please?
Can you say more about this?