Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion templates/rss.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<atom:link href="<?php p($_['rssLink']); ?>" rel="self" type="application/rss+xml" />
<?php foreach ($_['activities'] as $activity) { ?>
<item>
<guid isPermaLink="false"><?php p($activity['activity_id']); ?></guid>
<guid isPermaLink="false"><?php p($_['rssLink'] . '?id=' . $activity['activity_id']); ?></guid>
<?php if (!empty($activity['subject'])): ?>
<title><?php p(str_replace("\n", ' ', $activity['subject'])); ?></title>
<?php endif; ?>
Expand Down
6 changes: 3 additions & 3 deletions tests/Template/RssTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,15 @@ public function dataContent(): array {
['activity_id' => 1337, 'subject' => '', 'link' => '', 'timestamp' => 0, 'message' => ''],
],
' <item>'
. "\n" . ' <guid isPermaLink="false">1337</guid>'
. "\n" . ' <guid isPermaLink="false">http://nextcloud.org?id=1337</guid>'
. "\n" . ' </item>',
],
[
[
['activity_id' => 42, 'subject' => 'text', 'link' => 'http://docs.nextcloud.org', 'timestamp' => 21, 'message' => 'text2'],
],
' <item>'
. "\n" . ' <guid isPermaLink="false">42</guid>'
. "\n" . ' <guid isPermaLink="false">http://nextcloud.org?id=42</guid>'
. "\n" . ' <title>text</title>'
. "\n" . ' <link>http://docs.nextcloud.org</link>'
. "\n" . ' <pubDate>Thu, 01 Jan 1970 00:00:21 +0000</pubDate>'
Expand All @@ -98,7 +98,7 @@ public function dataContent(): array {
['activity_id' => 42, 'subject' => 'text', 'link' => 'http://docs.nextcloud.org', 'timestamp' => 21],
],
' <item>'
. "\n" . ' <guid isPermaLink="false">42</guid>'
. "\n" . ' <guid isPermaLink="false">http://nextcloud.org?id=42</guid>'
. "\n" . ' <title>text</title>'
. "\n" . ' <link>http://docs.nextcloud.org</link>'
. "\n" . ' <pubDate>Thu, 01 Jan 1970 00:00:21 +0000</pubDate>'
Expand Down