Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/20/2010 05:43:49 PM (15 years ago)
Author:
apeatling
Message:

Auto thumbnail the first image in a blog post and display it on the activity stream. This stops huge images in blogs posts from displaying on the stream and messing with the design. Fixes #1620

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-templatetags.php

    r2381 r2383  
    559559        global $activities_template;
    560560
    561         $mini_activity_actions = apply_filters( 'bp_activity_mini_activity_actions', array(
     561        $mini_activity_actions = apply_filters( 'bp_activity_mini_activity_types', array(
    562562            'friendship_accepted',
    563563            'friendship_created',
     
    569569
    570570        $class = '';
    571         if ( in_array( $activities_template->activity->type, (array)$mini_activity_actions ) )
     571        if ( in_array( $activities_template->activity->type, (array)$mini_activity_actions ) || empty( $activities_template->activity->content ) )
    572572            $class = ' mini';
    573573
Note: See TracChangeset for help on using the changeset viewer.