From e88dbde75a63e22797a2ac9b58faec85c8ee83b8 Mon Sep 17 00:00:00 2001 From: Eugene Molotov Date: Sat, 17 Mar 2018 14:06:06 +0500 Subject: [PATCH] [VkBridge] Mark reposted messages --- bridges/VkBridge.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/bridges/VkBridge.php b/bridges/VkBridge.php index fd76de1e..bf5f9487 100644 --- a/bridges/VkBridge.php +++ b/bridges/VkBridge.php @@ -60,6 +60,16 @@ class VkBridge extends BridgeAbstract //delete link "show full" in content $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 = "
Reposted:
$copy_quote_content"; + } + $item = array(); $item['content'] = strip_tags(backgroundToImg($post->find('div.wall_text', 0)->innertext), '
');