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

keep short_names on sanitize #308

Merged
merged 1 commit into from
Mar 22, 2019

Conversation

hinaloe
Copy link

@hinaloe hinaloe commented Mar 18, 2019

title = short_names[0]

throws TypeError: Cannot read property '0' of undefined. (It makes mastodon/mastodon#10315 )

This is one of way to resolve issue, but it may not a good way.

@nolanlawson
Copy link

Thank you!

@nolanlawson
Copy link

And yes we could probably go through the codebase and try to handle all cases where short_names is undefined, but this solution seems simpler.

@nolanlawson nolanlawson merged commit 290f442 into missive:master Mar 22, 2019
@nolanlawson
Copy link

@hinaloe
Copy link
Author

hinaloe commented Mar 22, 2019

Oh, I didn't face the problem with non-custom emoji, but it looks to need that to make interface uniform!

@nolanlawson
Copy link

I also can't seem to write a Jest test to reproduce this, but I am new to Jest.

@hinaloe hinaloe deleted the fix/crash-short_name branch March 23, 2019 07:40
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