Commit Graph

21 Commits

Author SHA1 Message Date
João Lucas de Oliveira Lopes fb12f6d9d3 refactor: replace axios with fetch API and update related types (#1666) 2025-09-28 05:52:43 +03:00
Rajeh Taher 787aed88b8 project: Move to ESM Modules 2025-07-17 13:54:17 +03:00
canove fa706d0b50 chore: format everything 2025-05-06 12:10:19 -03:00
contato.mateusfr@gmail.com 21f8431e61 Dependency Inversion for Logger (#1153)
* feat: interface "ILogger" created
feat: interface "ILogger" used instead of pino logger
feat: "PinoLoggerAdapter" created to implement "ILogger" interface

* feat: PinoLoggerAdapter removed
feat: ILogger mapping the features we're using from pino

* fix: sort imports

---------

Co-authored-by: Mateus Franchini de Freitas <contato.mateusfr@outlook.com>
Co-authored-by: Mateus Franchini de Freitas <mfranchini@domtec.com.br>
Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
2025-03-01 18:30:51 +02:00
Ezequiel Moraes f5c1affc4d fix: inefficient method of extracting url from text (#741)
* fix: inefficient method of extracting url from text
This fixes the thumbnail error when submitting a
Google Maps link.

* fix: link preview with redirects
2024-04-28 13:48:25 +03:00
Hisoka775 842b372778 fix: Fixed redirects in link-preview 2023-06-15 20:04:59 -03:00
Adhiraj Singh ca24608dc8 chore: pass axios options to downloading remote media 2023-02-18 13:03:47 +05:30
Adhiraj Singh f013b61e35 chore: update axios 2023-02-18 12:34:04 +05:30
Adhiraj Singh 26828d3dea fix: do not generate preview if title not present 2022-11-17 11:27:08 +05:30
Adhiraj Singh b33c753928 feat: add url options to link preview gen 2022-11-17 11:08:01 +05:30
Adhiraj Singh 586db48d2b feat: pass original thumbnail url in WAUrlInfo 2022-09-15 18:50:23 +05:30
Adhiraj Singh b988f4261f fix: remove redundant console 2022-09-15 18:50:06 +05:30
Adhiraj Singh f0bdb12e56 feat: generate high quality thumbs on link preview 2022-09-15 18:40:22 +05:30
Adhiraj Singh 864a01f9a5 feat: return og dimensions when generating thumb 2022-09-15 16:00:23 +05:30
Adhiraj Singh 64f3f08adb feat: log thumb gen errors 2022-09-12 12:15:34 +05:30
Adhiraj Singh be535f0a34 fix: give preview even if thumbnail gen fails 2022-06-09 15:07:04 +05:30
Adhiraj Singh 15761ca9df chore: more modular link preview generation 2022-05-27 13:30:37 +05:30
Ilya Borodin 2228da3b08 Preview link fix (#1548)
* Preview link fix

* Preview link refactor

* Deleted empty line

* Redundant unnecessary changes

* Added checker for http/https prefix in link

Co-authored-by: Ilya Borodin <ilya.borodin@botconversa.com.br>
2022-04-29 18:32:13 +05:30
Adhiraj Singh 68a6f34cde feat: add timeoutMs to link preview 2022-04-22 20:05:17 +05:30
Adhiraj Singh f421f5d387 feat: customize link preview image width 2022-04-19 19:12:24 +05:30
Adhiraj Singh 872536fa5b feat: link previews on MD 2022-04-19 19:00:32 +05:30