You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by di...@apache.org on 2022/03/23 14:30:23 UTC
[allura] 01/02: fixup! [#8421] SEO - omit /blogs/ from sitemap if no posts
This is an automated email from the ASF dual-hosted git repository.
dill0wn pushed a commit to branch dw/8421
in repository https://gitbox.apache.org/repos/asf/allura.git
commit bf4e4c9a08fbf782c13c1f05e59e4f4868fbac72
Author: Dillon Walls <di...@slashdotmedia.com>
AuthorDate: Wed Mar 23 14:30:04 2022 +0000
fixup! [#8421] SEO - omit /blogs/ from sitemap if no posts
---
ForgeBlog/forgeblog/main.py | 3 ---
1 file changed, 3 deletions(-)
diff --git a/ForgeBlog/forgeblog/main.py b/ForgeBlog/forgeblog/main.py
index 246e99e..40d474f 100644
--- a/ForgeBlog/forgeblog/main.py
+++ b/ForgeBlog/forgeblog/main.py
@@ -167,9 +167,6 @@ class ForgeBlogApp(Application):
return self.main_menu()
def should_noindex(self):
- if not has_access(self, 'read'):
- return True
-
post = BM.BlogPost.query.get(
app_config_id=self.config._id,
state='published',