public function getDefault($post)
{
/* - начало комментария
if (preg_match('#\[medio\](\d+)\[/medio\]#i', $post['message'], $matches))
{
$post['promote_data'] = $matches[1];
$post['medio'] = $this->getMedio($post);
return $post;
}
if (!empty($post['attachments']))
{
foreach ($post['attachments'] AS $attach)
{
if ($attach['thumbnailUrl'])
{
$post['promote_data'] = $attach['attachment_id'];
$post['attach'] = $this->getAttach($post);
return $post;
}
}
}
if (preg_match('#\[img\](.+?)\[/img\]#i', $post['message'], $matches))
{
$post['promote_data'] = $matches[1];
$post['image'] = $this->getImage($post);
return $post;
}
конец комментария - */
return $post;
}