mirror of
https://github.com/openvk/openvk
synced 2024-11-13 10:39:24 +03:00
Wall: [RSS] Fix URLs
This commit is contained in:
parent
f668aad262
commit
6b0da27328
1 changed files with 2 additions and 2 deletions
|
@ -113,14 +113,14 @@ final class WallPresenter extends OpenVKPresenter
|
|||
$feed = new Feed();
|
||||
|
||||
$channel = new Channel();
|
||||
$channel->title(OPENVK_ROOT_CONF['openvk']['appearance']['name'])->url(ovk_scheme(true))->appendTo($feed);
|
||||
$channel->title(OPENVK_ROOT_CONF['openvk']['appearance']['name'])->url(ovk_scheme(true) . $_SERVER["SERVER_NAME"])->appendTo($feed);
|
||||
|
||||
foreach($posts as $post) {
|
||||
$item = new Item();
|
||||
$item
|
||||
->title($post->getOwner()->getCanonicalName())
|
||||
->description($post->getText())
|
||||
->url(ovk_scheme(true)."/wall{$post->getPrettyId()}")
|
||||
->url(ovk_scheme(true).$_SERVER["SERVER_NAME"]."/wall{$post->getPrettyId()}")
|
||||
->pubDate($post->getPublicationTime()->timestamp())
|
||||
->appendTo($channel);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue