fix the more endpoint ... need to remove that

This commit is contained in:
Jarian Cottingham 2025-10-14 17:58:21 -05:00
parent eb355fa644
commit 5178c34599

View File

@ -52,8 +52,11 @@ def get_more_posts():
# Use archive parser to fetch posts
posts = archive_parser.get_posts(count=10, start_index=count)
return jsonify(posts)
filters_posts = []
for p in posts:
if p["url"] != "http://archive2.home.ms/#":
filters_posts += [p]
return jsonify(filters_posts)
except Exception as e:
print(f"Error: {e}")
return jsonify({"error": "Failed to fetch more posts"}), 500