Commit Graph

39 Commits

Author SHA1 Message Date
Fedor Indutny
74e0e245c4 Simplify link preview image fetching 2026-02-09 10:00:34 -08:00
Fedor Indutny
44076ece79 Rename files 2025-10-16 23:45:44 -07:00
Fedor Indutny
3387cf6a77 Prepare for adding file suffixes 2025-10-16 23:45:44 -07:00
Fedor Indutny
780f39c285 Faster incremental builds 2025-10-06 12:23:41 -07:00
Fedor Indutny
c02565eaa8 Enforce node: schema for builtins, import extensions 2025-09-16 17:39:03 -07:00
Jordan Rose
e55efbd6ee Link previews for image URLs 2025-06-30 12:41:09 -04:00
Jordan Rose
a1b10d1eff Link previews: return the image content type *after* transcoding 2025-06-30 10:17:48 -04:00
Fedor Indutny
4347964030 Scope pino lines with filename 2025-06-16 11:59:31 -07:00
Fedor Indutny
b0634f9a9d Replace buffer.slice() with buffer.subarray() 2025-06-09 14:37:30 -07:00
trevor-signal
8ba29f2909 Prefer article modified times in link preview descriptions 2025-03-14 12:56:34 -07:00
trevor-signal
517007ad04 Improve performance of link preview parsing 2024-08-02 10:07:52 -07:00
trevor-signal
09b5e6ef50 Remove autoOrientJPEG and consolidate downscaling logic 2024-03-06 13:49:21 -08:00
Scott Nonnenberg
99b2bc304e Use streams to download attachments directly to disk
Co-authored-by: trevor-signal <131492920+trevor-signal@users.noreply.github.com>
2023-10-30 09:24:28 -07:00
Jamie Kyle
3705b959d6 Remove end year from licenses 2023-01-03 11:55:46 -08:00
Fedor Indutny
e6ebfe4fca Update typescript to 4.8.4 2022-11-14 11:35:37 -08:00
Fedor Indutny
40f16b98e2 Transcode link preview images 2022-04-25 13:56:59 -07:00
Evan Hahn
6500804231 Fix minor errors in link preview comments 2022-04-05 09:07:50 -07:00
Fedor Indutny
0174687542 Use esbuild 2022-02-11 13:38:52 -08:00
Fedor Indutny
67339001a8 Fix getHtmlDocument for compressed documents 2021-12-20 17:45:57 +01:00
Evan Hahn
74fde10ff5 Prefer import type when importing types 2021-10-26 14:15:33 -05:00
Evan Hahn
92f7259272 Respect proxies when fetching link previews 2021-10-14 15:49:36 -07:00
Scott Nonnenberg
da9df293c6 linkPreviewFetch: Increase maximum HTML we'll process to 1000*1024 bytes 2021-10-14 11:53:53 -07:00
Fedor Indutny
4ef0bf96cc Uint8Array migration 2021-09-23 17:49:05 -07:00
Josh Perez
65ddf0a9e8 Import log instead of using it off of window 2021-09-17 14:27:53 -04:00
Scott Nonnenberg
9ca9f743c3 One lightbox at a time; proper dismiss of "read more" screen; proper in-progress draft HEIC images 2021-09-02 14:35:23 -05:00
Evan Hahn
9e9a815a2b ESLint: allow for..of 2021-08-26 13:18:00 -05:00
Josh Perez
9078919545 Transcode heic/heif images 2021-08-09 13:06:21 -07:00
Evan Hahn
e4a632f601 Link previews: clean up AbortSignal types 2021-06-08 13:55:37 -07:00
Evan Hahn
6642652bdb Fix link preview race condition 2021-06-02 17:19:40 -07:00
Fedor Indutny
2796dfab23 Check charset types in linkPreviewFetch.ts 2021-04-08 23:51:53 -04:00
Sasha Chedygov
e8fb835857 Prefer higher resolution link preview images
See [#5000][0].

[0]: https://github.com/signalapp/Signal-Desktop/pull/5000
2021-04-02 15:32:45 -05:00
Jost Schulte
9823eb2201 Fix typos in TypeScript and SCSS files
See [#5136][0].

[0]: https://github.com/signalapp/Signal-Desktop/pull/5136
2021-04-02 15:28:07 -05:00
Evan Hahn
8a72607fa7 Prefer type to interface and add an ESLint rule 2021-01-25 18:29:00 -08:00
Evan Hahn
8c25ffd6f5 Link previews: show full size image less often 2021-01-11 14:23:09 -08:00
Evan Hahn
172598b354 Fix link previews for YouTube Music 2021-01-11 13:43:44 -08:00
Evan Hahn
8bfaf598af Add license headers across the project 2020-11-04 13:03:13 -06:00
Evan Hahn
dd57963dab Outbound link previews: more lenient loading
Signed-off-by: Josh Perez <josh.p@signal.org>
2020-10-15 14:34:45 -04:00
Evan Hahn
6e1a83ae4e Reject HTTP URLs when loading link previews 2020-10-12 18:10:08 -04:00
Evan Hahn
313faab774 Outbound link previews 2020-10-12 18:10:08 -04:00