You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a user creates a new post to a group blog, the notifications that are sent out to users contain the content from the wrong post.
In bp-activity-subscription-functions.php, bpges_generate_notification(), after the comment:
// Use bbPress filtered post content and reapply GES filter... sigh.
... since the call to get_post_field( 'post_content', $activity->secondary_item_id, 'raw' ) is being made in the context of the primary blog, it is getting the content for an unrelated post and sending that in the notification to group users
This can lead to exposing, for example, posts to forums of private groups.
I'm going to work around this by switching back to the post's blog before getting the post text:
When a user creates a new post to a group blog, the notifications that are sent out to users contain the content from the wrong post.
In bp-activity-subscription-functions.php, bpges_generate_notification(), after the comment:
... since the call to get_post_field( 'post_content', $activity->secondary_item_id, 'raw' ) is being made in the context of the primary blog, it is getting the content for an unrelated post and sending that in the notification to group users
This can lead to exposing, for example, posts to forums of private groups.
I'm going to work around this by switching back to the post's blog before getting the post text:
The text was updated successfully, but these errors were encountered: