mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-04 02:54:42 +02:00
[VkBridge] Fix single photo duplication (#3816)
This commit is contained in:
parent
206edaedf5
commit
f3df283c4d
1 changed files with 7 additions and 0 deletions
|
@ -315,6 +315,13 @@ class VkBridge extends BridgeAbstract
|
||||||
$copy_quote->outertext = "<br>Reposted ($copy_quote_author): <br>$copy_quote_content";
|
$copy_quote->outertext = "<br>Reposted ($copy_quote_author): <br>$copy_quote_content";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
foreach ($post->find('.PrimaryAttachment .PhotoPrimaryAttachment') as $pa) {
|
||||||
|
$img = $pa->find('.PhotoPrimaryAttachment__imageElement', 0);
|
||||||
|
if (is_object($img)) {
|
||||||
|
$pa->outertext = $img->outertext;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
foreach ($post->find('.SecondaryAttachment') as $sa) {
|
foreach ($post->find('.SecondaryAttachment') as $sa) {
|
||||||
$sa_href = $sa->getAttribute('href');
|
$sa_href = $sa->getAttribute('href');
|
||||||
if (!$sa_href) {
|
if (!$sa_href) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue