Skip to:
Content

BuddyPress.org

Ticket #6177: activity-comment.1.patch

File activity-comment.1.patch, 898 bytes (added by DJPaul, 4 years ago)
  • src/bp-activity/bp-activity-filters.php

    diff --git a/src/bp-activity/bp-activity-filters.php b/src/bp-activity/bp-activity-filters.php
    index 5dc0d4d..b9e5311 100644
    a b function bp_activity_truncate_entry( $text ) { 
    410410         * @param bool $maybe_truncate_text If true, text should be checked to see if it needs truncating.
    411411         * @since BuddyPress (2.3.0)
    412412         */
    413         $maybe_truncate_text = apply_filters( 'bp_activity_maybe_truncate_entry',
    414                 ! in_array( $activities_template->activity->type, array( 'new_blog_post', ), true )
     413        $maybe_truncate_text = apply_filters(
     414                'bp_activity_maybe_truncate_entry',
     415                isset( $activities_template->activity->type ) && ! in_array( $activities_template->activity->type, array( 'new_blog_post', ), true )
    415416        );
    416417
    417418        // The full text of the activity update should always show on the single activity screen