mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 11:26:56 -08:00
only include indexable posts in sitemap.xml
This commit is contained in:
parent
2967956cc5
commit
6c98d94555
1 changed files with 1 additions and 1 deletions
|
@ -466,7 +466,7 @@ def robots():
|
|||
@cache.cached(timeout=6000)
|
||||
def sitemap():
|
||||
posts = Post.query.filter(Post.from_bot == False, Post.deleted == False, Post.instance_id == 1, Post.indexable == True)
|
||||
posts = posts.order_by(desc(Post.posted_at)).limit(100)
|
||||
posts = posts.order_by(desc(Post.posted_at)).limit(500)
|
||||
|
||||
resp = make_response(render_template('sitemap.xml', posts=posts, current_app=current_app))
|
||||
resp.mimetype = 'text/xml'
|
||||
|
|
Loading…
Reference in a new issue