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: avoid error from missing twitter meta tags #26927

Merged
merged 1 commit into from May 14, 2024

Conversation

dsims
Copy link
Contributor

@dsims dsims commented May 8, 2024

There is an error ("no implicit conversion of Array into Integer") if some meta tags are missing. At some point the twitter HTML changed and Murphy's law kicked in. This fixes the error and uses meta tags that exist.

@dsims dsims changed the title FIX: avoid error from missing meta tags FIX: avoid error from missing twitter meta tags May 8, 2024
@discoursebot
Copy link

This pull request has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/twitter-status-onebox-error-fix/307203/1

Copy link
Contributor

@pmusaraj pmusaraj left a comment

Choose a reason for hiding this comment

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

Seems a reasonable change, what do you think @jancernik?

Copy link
Member

@jancernik jancernik left a comment

Choose a reason for hiding this comment

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

Looks good. I tested it locally too 👍

@pmusaraj pmusaraj merged commit e6e3eaf into discourse:main May 14, 2024
16 checks passed
@pmusaraj
Copy link
Contributor

Thanks @dsims!

@dsims dsims deleted the fix_twitter_status_onebox branch May 14, 2024 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants