$attachment->type = 'general';
            break;
    }
    !isset($attachment->type) ? $attachments = array() : ($attachments[] = $attachment);
    $groupString = "";
    if (isset($activity->groupid) && !empty($activity->groupid)) {
        $groupTable = JTable::getInstance('Group', 'CTable');
        $groupTable->load($activity->groupid);
        $groupString = JText::sprintf('COM_COMMUNITY_SHARE_VIDEO_FROM_GROUP', $groupTable->getLink(), $groupTable->name);
    }
    $stream = new stdClass();
    $stream->actor = $user;
    $stream->target = null;
    $stream->headline = JText::sprintf('COM_COMMUNITY_ACTIVITY_SHARE_STATUS', CUrlHelper::userLink($user->id), $user->getDisplayName(), CUrlHelper::userLink($actor->id), $actor->getDisplayName(), isset($app[$activity->app]) ? $app[$activity->app] : '') . $groupString;
    $stream->message = CActivities::format($act->title);
    $stream->mood = $params->get('mood', NULL);
    $stream->sharedMessage = CActivities::format($activity->title);
    $stream->sharedMood = $activityParam->get('mood', NULL);
    $stream->groupid = $activity->groupid;
    $stream->eventid = "";
    $stream->access = $this->act->access;
    $stream->attachments = $attachments;
    /**
     * @todo Need to clearly this one
     * Right now it's return on right data
     */
    $stream->attachments[] = CActivityStream::formatStreamAttachment($activity);
    $stream->createdtime = $createdTime;
    $this->set('stream', $stream);
    $this->load('stream/base-extended');
}