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

Pretend to be facebook and twitter bots in link prefetcher #3602

Merged
merged 1 commit into from
Dec 19, 2019
Merged

Conversation

xPaw
Copy link
Member

@xPaw xPaw commented Dec 17, 2019

This is not my idea. Apple does this in iMessages.

When using lounge's UA, to get to the <title> tag, you have to download >600kb of content for some reason. Lounge limits to 50kb and cuts off so we don't get any previews on amazon.

Adding facebook to the UA makes amazon serve opengraph tags, and we get a proper preview.

See https://24ways.org/2019/microbrowsers-are-everywhere/
https://peter.upfold.org.uk/blog/2019/02/23/when-is-imessage-not-imessage-when-its-facebookexternalhit-1-1/

@thelounge/maintainers Do you think this is fine?

@xPaw xPaw added the Meta: Internal This is an internal codebase change (testing, linting, etc.). label Dec 17, 2019
@richrd
Copy link
Member

richrd commented Dec 19, 2019

Yeah, why not. I don't see any harm in this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Meta: Internal This is an internal codebase change (testing, linting, etc.).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants