[VkBridge] Mark reposted messages

This commit is contained in:
Eugene Molotov 2018-03-17 14:06:06 +05:00
parent f4a351c380
commit e88dbde75a

View File

@ -60,6 +60,16 @@ class VkBridge extends BridgeAbstract
//delete link "show full" in content //delete link "show full" in content
$post->find('a.wall_post_more', 0)->outertext = ''; $post->find('a.wall_post_more', 0)->outertext = '';
} }
if (is_object($post->find('div.copy_quote', 0))) {
$copy_quote = $post->find('div.copy_quote', 0);
if ($copy_post_header = $copy_quote->find('div.copy_post_header', 0)) {
$copy_post_header->outertext = '';
}
$copy_quote_content = $copy_quote->innertext;
$copy_quote->outertext = "<br>Reposted: <br>$copy_quote_content";
}
$item = array(); $item = array();
$item['content'] = strip_tags(backgroundToImg($post->find('div.wall_text', 0)->innertext), '<br><img>'); $item['content'] = strip_tags(backgroundToImg($post->find('div.wall_text', 0)->innertext), '<br><img>');