Skip to content
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

fix comment type detection #453

Merged
merged 1 commit into from
Jan 4, 2024
Merged

fix comment type detection #453

merged 1 commit into from
Jan 4, 2024

Conversation

pfefferle
Copy link
Owner

Currently the get_response_type logic is using the get_content function. This function adds some fallbacks for mentions or for the case when the content is empty.

For mentions the get_content function always returns the summary that is smaller than MAX_INLINE_MENTION_LENGTH, so mentions will always be handled as comments.

Currently the `get_response_type` logic is using the `get_content` function. This function adds some fallbacks for mentions or for the case when the content is empty.

For `mentions` the `get_content` function always returns the summary that is smaller than `MAX_INLINE_MENTION_LENGTH`, so mentions will always be handled as comments.
@pfefferle pfefferle merged commit b1deda1 into main Jan 4, 2024
17 checks passed
@pfefferle pfefferle deleted the fix/wrong-response-type branch January 4, 2024 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant