Alex Jbanca
2bcd7e97a6
fix(LinksPreview): Validate image links in the links preview request ( #3169 )
...
Motivated by: https://github.com/status-im/status-desktop/pull/9084
While we don't request preview data from Tenor because the url itself will contain the GIF image, we still need to validate the url in the preview request. This is done using a HEAD request where we expect the response status code to be 200 OK.
At the same time we will add the content type to the preview response.
2023-02-08 15:23:55 +02:00
Roman Volosovskyi
550de3bff2
Add previews for youtube links with www subdomain
2023-02-02 12:08:19 +01:00
Stefan
bcdb14bd48
fix: remove tenor.com from preview whitelist
2022-09-15 12:27:49 +02:00
Samuel Hawksby-Robinson
15f4f8956f
Resolved gosec issue calling http.Get() from package default client
2022-09-09 15:07:48 +01:00
Samuel Hawksby-Robinson
505ef579eb
Refactor to urls to try to remove http client use in tests
...
shelfing it at the moment, if it becomes a problem in the future then may be we can address it then. For the moment I've just left the refactoring I already did.
2022-09-09 15:07:48 +01:00
Samuel Hawksby-Robinson
41cb9d7bea
Added httptest.NewServer to DecodeFromURL and CryptoOnRamp tests
2022-09-09 15:07:48 +01:00
Stefan
bc00836df2
feat: add tenor domains to LinkPreviewWhitelist
...
Also forward the tenor URLs as previews
Updates: #6829
2022-09-05 12:32:11 +02:00
Jonathan Rainville
dad02df69b
chore: remove tenor since the api no longer returns a url ( #2439 )
2021-11-24 10:12:30 -05:00
Anthony Laibe
dbd34ae7eb
feat: Re-enable unfurling for tenor ( #2302 )
2021-08-20 15:13:10 -04:00
Ismael
1efe023dd7
Add unfurling for Twitter links
...
Fix lint issues
Wrap json.Unmarshall() errors in urls.go
Bump version 0.83.9 -> 0.83.10
2021-08-16 20:03:10 +02:00
Roman Volosovskyi
d1dc5f1e27
[wallet] Add wallet_getChachedBalances method
2021-05-25 10:03:05 +03:00
Shivek Khurana
9ef4971fe1
Comment out Medium unfurling ( #2193 )
2021-04-12 14:49:34 +05:30
Andrea Maria Piana
6ac1c43926
Add status.im and medium.com to link unfurling
2021-02-15 11:51:14 +01:00
Shivek Khurana
8d9b85f103
Fix linting
2021-02-05 15:12:38 +01:00
Shivek Khurana
0feab5c6a7
Handle media.giphy.com and expose dimensions of gifs
2021-02-05 15:12:38 +01:00
Shivek Khurana
757dbcd98e
Change giphy short url, was gph.is but was using gph.se
2021-02-05 15:12:38 +01:00
Shivek Khurana
4b5dbc3d52
Fixed linting
2021-02-05 15:12:38 +01:00
Shivek Khurana
ad6229bc4f
Follow short urls to get long url and then use that long url with oembed
2021-02-05 15:12:38 +01:00
Shivek Khurana
499f1702d1
Whitelist media.giphy.com
2021-02-05 15:12:38 +01:00
Shivek Khurana
55f7ad7496
Make errors start with lower case
2021-02-05 15:12:38 +01:00
Shivek Khurana
3fb75919ce
Go linter thinks that I'm a 12 year old going on a solo trip to China
2021-02-05 15:12:38 +01:00
Shivek Khurana
12a47b7893
Ignore Giphy load balancer urls
2021-02-05 15:12:38 +01:00
Shivek Khurana
63a6c917fe
if -> switch/case
2021-02-05 15:12:38 +01:00
Shivek Khurana
2039305900
Fix lint
2021-02-05 15:12:38 +01:00
Shivek Khurana
d37b7a9729
Tenor unfurling + connected Giphy and Tenor to GetPreviewData fn
2021-02-05 15:12:38 +01:00
Shivek Khurana
47e17624d6
Giphy oembed in place
2021-02-05 15:12:38 +01:00
Frank Tang
922e785512
Add GitHub to whitelist for URL unfurling #11426
2021-01-11 11:15:09 +01:00
Eric Mastro
149877a939
feat: allow getPreviewLinkData for all whitelisted links ( #2094 )
...
* feat: allow getPreviewLinkData for all links
Only YouTube links were supported in `getPreviewLinkData` previously.
Now, any whitelisted links can have their data retreived using this function, returning the true content type (by examining the header bytes of the content).
feat: add tenor.com and giphy.com to whitelisted urls list
* Fix json format
* bump VERSION
* Lint urls.go
Co-authored-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2020-12-18 19:33:24 +11:00
Volodymyr Kozieiev
3e446eed8c
Link previews support ( #2059 )
2020-10-27 19:35:28 +02:00