Skip to:
Content

Opened 4 years ago

Last modified 5 weeks ago

#4784 new defect (bug)

Site Page Comments Don't Reach Activity

Reported by: clivoo Owned by:
Milestone: 2.8 Priority: normal
Severity: normal Version:
Component: Activity Keywords: needs-patch good-first-bug
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

Change History (8)

#1 @clivoo
4 years ago

  • Component changed from Core to Activity

#2 @r-a-y
4 years ago

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.

#3 @DJPaul
4 years ago

  • Milestone changed from Awaiting Review to Future Release

Not entirely sure why we don't let page comments into the Activity stream?

#4 @slaFFik
5 weeks ago

  • Keywords needs-patch good-first-bug added
  • Milestone changed from Future Release to 2.8
  • Severity changed from major to normal
  • Version 1.6 deleted

Comments to default WordPress pages are still not tracked. I propose to include them by default.
Developers can easily filter them out if not needed.

Last edited 5 weeks ago by slaFFik (previous) (diff)

#5 @boonebgorges
5 weeks ago

Previously: #3455, [4959]

The default set of post types for recording *post* activity and *comment* activity should be the same. I think it would be bad default behavior if page comments were posted to the activity stream, but pages themselves were not.

Recording 'page' data by default seems OK to me.

#6 @CliveSoulHeal
5 weeks ago

I posted the original 'complaint' at the top I use PAGES and I'd been using pages with my comments coming to the BP stream for years and years then it stopped. So, "I think it would be bad default behavior if page comments were posted to the activity stream" i.e. suddenly changing (in my terms) basic functioning that I relied on for years is extremely bad policy.

Just to remind you on every PAGE 'page' you are asked if you want commenting enabled, you can tick to have comments active. So, if anyone thinks that ticked comments on a page should NOT appear in the BP activity stream then you should also add in a TICK box asking if they want page comments to NOT BE POSTED in BP activity (NOT the other way around which would require me to manually activate for literally 1000's of pages).

The "bp-custom.php" work around worked for me (thanks r-a-y) so I don't want anything that would cause that work around to 'NOW' NOT WORK once again in the future.

Last edited 5 weeks ago by CliveSoulHeal (previous) (diff)

#7 @boonebgorges
5 weeks ago

Hi @CliveSoulHeal - I agree that we should not have changed the behavior, at least not without a warning. This was an oversight and an error in BP 1.6. Apologies on behalf of the BP team if it caused problems on your site.

The "bp-custom.php" work around worked for me (thanks r-a-y) so I don't want anything that would cause that work around to 'NOW' NOT WORK once again in the future.

Right. What's being suggested here is, essentially, to have your bp-custom.php behavior be the default.

#8 @CliveSoulHeal
5 weeks ago

That would be great for me @boonebgorges the only problem I can see is that some people will be relying on not having page comments appearing in the activity i.e. as it is now comments on pages would be sort of private / hidden? So, they'd suddenly find page comments appearing in the AS that they didn't want seen in public.

So, the best option would be to add a setting to the BP admin 'settings' page to switch adding page comments to the activity stream on or off? With the default as it is now?

Note: See TracTickets for help on using tickets.