Skip to content

ARR: Comment threshold thread ID for deleted replies #2434

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
haroldrubio opened this issue Nov 25, 2024 · 0 comments
Open

ARR: Comment threshold thread ID for deleted replies #2434

haroldrubio opened this issue Nov 25, 2024 · 0 comments
Assignees
Labels
arr Issues related to the ARR workflow

Comments

@haroldrubio
Copy link
Member

Some of the the replyto fields of all current replies may not be present (as in they may have been deleted) and causes the thread ID to resolve incorrectly, assume orphaned comments belong to the forum thread

def get_thread_id(tree, comment_id, forum):
        thread_id = comment_id
        try:
            while tree[thread_id] != forum:
                thread_id = tree[thread_id]
        except KeyError:
            return forum
        return thread_id
@haroldrubio haroldrubio added the arr Issues related to the ARR workflow label Nov 25, 2024
@haroldrubio haroldrubio self-assigned this Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arr Issues related to the ARR workflow
Projects
None yet
Development

No branches or pull requests

1 participant