Skip to:
Content

BuddyPress.org

Ticket #8579: 8579.patch

File 8579.patch, 691 bytes (added by imath, 3 years ago)
  • src/bp-activity/bp-activity-functions.php

    diff --git src/bp-activity/bp-activity-functions.php src/bp-activity/bp-activity-functions.php
    index 399faff7d..ed5705512 100644
    function bp_activity_post_type_update( $post = null ) { 
    23032303        // Update the activity entry.
    23042304        $activity = new BP_Activity_Activity( $activity_id );
    23052305
     2306        // Check if the Post author has changed.
     2307        if ( (int) $post->post_author !== (int) $activity->user_id ) {
     2308                $activity->user_id = (int) $post->post_author;
     2309        }
     2310
    23062311        if ( ! empty( $post->post_content ) ) {
    23072312                $activity_summary = bp_activity_create_summary( $post->post_content, (array) $activity );
    23082313