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