We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

fix your plugin - Social Media Importer 1.01 | Forum

tammy harris
tammy harris Jan 2 '16
on import 2 or more photos it breaks newsfeed
theres something wrong this peace of code

$albumName = UTIL_String::truncate(strip_tags($album->name), 25, '...');

   

    if ( $diff )

    {

    $title = OW::getLanguage()->text('photo', 'feed_multiple_descriptions',

    array('number' => $movedCount, 'albumUrl' => $albumUrl, 'albumName' => $albumName)

    );

    }

    else

    {

    $title = UTIL_String::truncate(strip_tags($description), 100, '...');

    }

   

    $event = new OW_Event('feed.action', array(

    'pluginKey' => 'photo',

    'entityType' => 'multiple_photo_upload',

    'entityId' => $photos[0]->id,

    'userId' => $userId

    ), array(

    'string' => $title,

    'features' => array('likes'),

    'content' => $content,

    'view' => array('iconClass' => 'ow_ic_picture')

    ));

    OW::getEventManager()->trigger($event);

    }

    }

    }


You do not have permission to reply this topic