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)