From f5be6e51ce13fe7ac7dc393fb31c5bce673de286 Mon Sep 17 00:00:00 2001 From: Daniel Nitsikopoulos Date: Mon, 21 Aug 2023 21:00:57 +1200 Subject: [PATCH] Allow all posts to appear as weekly posts --- app/repos/post_repo.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/repos/post_repo.rb b/app/repos/post_repo.rb index 09f7ed7..03e000e 100644 --- a/app/repos/post_repo.rb +++ b/app/repos/post_repo.rb @@ -96,8 +96,7 @@ module Adamantium def week_posts(limit: nil) posts - .where(post_type: "post", location: nil) - .exclude(name: nil) + .where(post_type: "post") .weekly .published .combine(:tags)