From 608d13f356d6f42fda25564f02955bcb9487cf5e Mon Sep 17 00:00:00 2001 From: nebula Date: Thu, 24 Apr 2025 05:14:30 +0000 Subject: [PATCH] that oughta do it --- bink.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bink.py b/bink.py index cf36ef8..dda41f5 100755 --- a/bink.py +++ b/bink.py @@ -37,7 +37,10 @@ def file_object(path): return (int(split[-1]), split[2], path) def generate_feed(before=None, count=200): - posts = [file_object(path) for path in glob("/home/**/.bink/*") if os.path.isfile(path)] + posts = [ + file_object(path) for path in glob("/home/**/.bink/*") + if os.path.isfile(path) and not os.path.islink(path) + ] if before: posts = [post for post in posts if post[0] < before] posts.sort(key=lambda x: x[0], reverse=True)