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

feat(Error): disable clicking + crash fix #526

Merged
merged 2 commits into from
Sep 2, 2024

Conversation

FineFindus
Copy link

Disables clicking the ErrorStatusDisplayItem, since there is no valid content to be displayed.

Also fixes an issue, where non-mastodon posts could have hashtags without any text, which could lead to an oob String access, e.g.:
https://mastodon.social/@[email protected]/113050670800313268

Disable clicking on the ErrorStatusDisplayItem, since there is no valid
content that can be displayed.
Fixes a crash, where the text of an hashtag was empty, leading to an oob
string access.
Copy link
Owner

@LucasGGamerM LucasGGamerM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you set the item to be disabled? Is there an underlying reason?

@FineFindus
Copy link
Author

Disables clicking the ErrorStatusDisplayItem, since there is no valid content to be displayed.

As said above, there is no valid content that can be displayed. Opening the faulty Status may lead to further error, additional it's quite unexpected to be able to click on an error.

@LucasGGamerM
Copy link
Owner

Disables clicking the ErrorStatusDisplayItem, since there is no valid content to be displayed.

As said above, there is no valid content that can be displayed. Opening the faulty Status may lead to further error, additional it's quite unexpected to be able to click on an error.

Ohhh, that makes a lot of sense.

@LucasGGamerM LucasGGamerM merged commit f30e12f into LucasGGamerM:master Sep 2, 2024
1 check passed
@FineFindus FineFindus deleted the fix/empty-hashtag branch September 2, 2024 12:51
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.

2 participants