From 99f0586efcbbb0ddd0887e6df91a9d4258d70b5f Mon Sep 17 00:00:00 2001 From: Slfhstd Date: Sun, 22 Feb 2026 22:47:33 +0000 Subject: [PATCH] fixed distinguish comment --- flairtimercomment.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/flairtimercomment.py b/flairtimercomment.py index 1e98107..183b3ce 100644 --- a/flairtimercomment.py +++ b/flairtimercomment.py @@ -40,7 +40,11 @@ def main(reddit, posts: dict): if getattr(config, 'distinguish_comment', False): try: sticky = getattr(config, 'distinguish_sticky', False) - comment.mod.distinguish(how="yes", sticky=sticky) + if sticky: + comment.mod.distinguish(how="yes", sticky=True) + else: + comment.mod.distinguish(how="yes") + print(f"Distinguished comment (sticky={sticky})") except Exception as e: print(f"Could not distinguish comment: {e}") print(f"Post {submission} has been flaired {config.flair_text} for {config.hours} hours, posted comment")