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.
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.