mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-23 15:06:53 +00:00
[VkBridge] Remove double backslashes in feed item link
This commit is contained in:
parent
ca77295c80
commit
e29cd8fd1a
@ -71,7 +71,13 @@ class VkBridge extends BridgeAbstract
|
|||||||
}
|
}
|
||||||
|
|
||||||
// get post link
|
// get post link
|
||||||
$item['uri'] = self::URI . $post->find('a.post_link', 0)->getAttribute('href');
|
$post_link = $post->find('a.post_link', 0)->getAttribute('href');
|
||||||
|
if (substr(self::URI, -1) == '/') {
|
||||||
|
$post_link = self::URI . ltrim($post_link, "/");
|
||||||
|
} else {
|
||||||
|
$post_link = self::URI . $post_link;
|
||||||
|
}
|
||||||
|
$item['uri'] = $post_link;
|
||||||
$item['timestamp'] = $this->getTime($post);
|
$item['timestamp'] = $this->getTime($post);
|
||||||
$item['title'] = $this->getTitle($item['content']);
|
$item['title'] = $this->getTitle($item['content']);
|
||||||
$item['author'] = $pageName;
|
$item['author'] = $pageName;
|
||||||
|
Loading…
Reference in New Issue
Block a user