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

Ability to configure User-Agent for URL previews #17873

Open
alexgleason opened this issue Oct 28, 2024 · 0 comments · May be fixed by #17968
Open

Ability to configure User-Agent for URL previews #17873

alexgleason opened this issue Oct 28, 2024 · 0 comments · May be fixed by #17968

Comments

@alexgleason
Copy link

Hello. I would like the ability to configure the user-agent used in link preview requests, with an option like: url_preview_user_agent

Why: because currently links to YouTube do not render a link preview on Synapse. This is YouTube's fault. However you can bypass it by pretending to be Facebook, by setting the user-agent to facebookexternalua. Then YouTube link previews will work properly again.

Exposing a configuration will let server admins work around the issue.

@MomentQYC MomentQYC linked a pull request Nov 27, 2024 that will close this issue
3 tasks
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 a pull request may close this issue.

1 participant