Opened 5 months ago
Last modified 5 months ago
#4784 new defect (bug)
Site Page Comments Don't Reach Activity
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Future Release |
| Component: | Activity | Version: | 1.6 |
| Severity: | major | Keywords: | |
| Cc: |
Description
I had BP working fine until I updated to latest BP and WP. I then lost all of my Activity comments from my blogs. I tried disabling plugins etc, reverting to buddypress default theme – nothing gives. I’ve done fresh installs on different servers with the same problem.
I think I’ve isolated the problem. Comments on PAGES don't seem to be being added to the Activity stream. All of my recent comments are comments to pages NOT TO POSTS. If I comment to a page it doesn’t appear, if I comment to an old post it does.
Also, network update doesn't add page originated comments either.
I think this happened with 16.0 but it might have been 1.6.1

By default, BP only records post comments into the activity stream.
To expand this to the 'page' post type, you might want to look at the code snippet in #4106.
Here's something to try in wp-content/plugins/bp-custom.php:
function bp_ticket_4784_record_custom_comment_post_types($cpts) { $cpts[] = 'page'; return $cpts; } add_filter( 'bp_blogs_record_comment_post_types', 'bp_ticket_4784_record_custom_comment_post_types' );Untested, but give it a shot.