This repository was archived by the owner on Apr 26, 2024. It is now read-only.
Commit 915cd6a
committed
Use bot user agent for openGraph queries
We found that some websites return opengraph information based
on the user agent.
In order to address this, using (bot) in the user agent string
may help the website behave correctly. When testing Twitter, we
found that the correct metadata is returned with the (bot) user
agent while it isn't for the default user agent.
This change additionally updates providers.json, as with the
user agent fix twitter will now return the expected openGraph
metadata.
Signed-off-by: Andrew Ryan <[email protected]>1 parent 55113dd commit 915cd6a
File tree
3 files changed
+8
-4
lines changed- changelog.d
- synapse
- rest/media/v1
- res
3 files changed
+8
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | 8 | | |
11 | 9 | | |
12 | 10 | | |
13 | 11 | | |
14 | 12 | | |
15 | 13 | | |
16 | 14 | | |
17 | | - | |
| 15 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
402 | 402 | | |
403 | 403 | | |
404 | 404 | | |
405 | | - | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
406 | 411 | | |
407 | 412 | | |
408 | 413 | | |
| |||
0 commit comments