public function shareToFeed($content, $uid, $attach_ids, $from)
{
$d['content'] = '';
$d['body'] = $content . ' ';
$d['from'] = 0;
//TODO
if ($attach_ids) {
$type = 'postimage';
$d['attach_id'] = $attach_ids;
} else {
$type = 'post';
}
$feed = model('Feed')->put($uid, 'public', $type, $d, '', 'feed');
return $feed['feed_id'];
}