Stories have to pass along absolute links in their RSS feeds. Fixes bug #11606
This commit is contained in:
parent
59fed35087
commit
c9dc084ed6
3 changed files with 8 additions and 5 deletions
|
|
@ -9,6 +9,7 @@
|
|||
- fixed #11605: UserList refers to non-existent "publicEmail" user profiling field
|
||||
- fixed #11595: Orphaned data in inbox_messageState
|
||||
- fixed AddressBook feedback for missing fields.
|
||||
- fixed #11606: Syndicated Content feed returns a relative link
|
||||
|
||||
7.9.6
|
||||
- new checkbox in the asset manager for clearing the package flag on import
|
||||
|
|
|
|||
|
|
@ -534,15 +534,17 @@ property of the Asset.
|
|||
=cut
|
||||
|
||||
sub getRssData {
|
||||
my $self = shift;
|
||||
my $self = shift;
|
||||
my $session = $self->session;
|
||||
my $url = $session->url->getSiteURL.$self->getUrl;
|
||||
my $data = {
|
||||
title => $self->get('headline') || $self->getTitle,
|
||||
description => $self->get('story'),
|
||||
'link' => $self->getUrl,
|
||||
guid => $self->getUrl,
|
||||
'link' => $url,
|
||||
guid => $url,
|
||||
author => $self->get('byline'),
|
||||
date => $self->get('lastModified'),
|
||||
pubDate => $self->session->datetime->epochToMail($self->get('creationDate')),
|
||||
pubDate => $session->datetime->epochToMail($self->get('creationDate')),
|
||||
};
|
||||
return $data;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -278,7 +278,7 @@ cmp_deeply(
|
|||
{
|
||||
title => 'Story 1',
|
||||
description => 'WebGUI was originally called Web Done Right.',
|
||||
'link' => re('story-1$'),
|
||||
'link' => all(re('^'.$session->url->getSiteURL),re('story-1$')),
|
||||
guid => re('story-1$'),
|
||||
author => 'JT Smith',
|
||||
date => $story->get('lastModified'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue