From 36f2805d6025035d55b53231c4f0185ad1326783 Mon Sep 17 00:00:00 2001 From: blankie Date: Tue, 23 Aug 2022 12:36:10 +0700 Subject: [PATCH] Reference the correct post https://old.reddit.com/r/hentaimemes/comments/wv67jr/ --- redditbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redditbot.py b/redditbot.py index 8a47b91..af7a015 100644 --- a/redditbot.py +++ b/redditbot.py @@ -108,7 +108,7 @@ async def main(): if unique_id in give_ups: return cpid = getattr(submission, 'crosspost_parent', None) - if cpid and getattr(random_post, 'crosspost_parent_list', None): + if cpid and getattr(submission, 'crosspost_parent_list', None): cpid = cpid[3:] if submission.id in chat_sp + global_sp or cpid in chat_sp + global_sp: continue