Browse Source

Fixed ordering of Blog and Podcast RSS feeds.

tags/2.0.3
Teknikode 4 years ago
parent
commit
d0fd245076
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Teknik/Areas/RSS/Controllers/RSSController.cs

+ 2
- 2
Teknik/Areas/RSS/Controllers/RSSController.cs View File

@@ -61,7 +61,7 @@ namespace Teknik.Areas.RSS.Controllers

List<SyndicationItem> items = new List<SyndicationItem>();

foreach (BlogPost post in blog.BlogPosts)
foreach (BlogPost post in blog.BlogPosts.OrderByDescending(p => p.BlogPostId))
{
if (post.Published && post.System == isSystem)
{
@@ -89,7 +89,7 @@ namespace Teknik.Areas.RSS.Controllers
public ActionResult Podcast()
{
List<SyndicationItem> items = new List<SyndicationItem>();
List<Podcast.Models.Podcast> podcasts = db.Podcasts.Where(p => p.Published).ToList();
List<Podcast.Models.Podcast> podcasts = db.Podcasts.Where(p => p.Published).OrderByDescending(p => p.Episode).ToList();
if (podcasts != null)
{
foreach (Podcast.Models.Podcast podcast in podcasts)

Loading…
Cancel
Save