Commit Graph

540 Commits

Author SHA1 Message Date
edf0109095 allow wasm to run 2024-06-23 19:31:30 +12:00
pimlie
3301da1ef1 feat: add support to blur spoiler previews 2024-06-22 12:16:12 +02:00
Matthew Esposito
213481ef53
Merge pull request #148 from Pix3l01/fix-healthcheck
Make server listen on both IPv6 and IPv4 by default to fix docker healthcheck
2024-06-20 08:06:27 -04:00
Matthew Esposito
f460895cc0 chore(clippy): fix lint 2024-06-20 07:56:43 -04:00
ac615223s5
5193164719
Merge branch 'redlib-org:main' into default-filter 2024-06-19 20:10:05 -04:00
Matthew Esposito
9013e589dd chore(clippy): fix lint 2024-06-19 14:45:55 -04:00
Matthew Esposito
997cd8f829 feat(bug): Improve bug reporting while keeping logs private 2024-06-19 14:45:32 -04:00
Matthew Esposito
5a13b9892b chore(clippy): add lint 2024-06-19 14:28:48 -04:00
Alessandro Pizzorni
91975865b8 Make server listen on both IPv6 and IPv4 by default 2024-06-19 00:42:38 +02:00
a5a5cbb734 add defaults for mascot fixes some of #7 2024-06-18 21:00:02 +12:00
a67cbb99a6 sync upstream 2024-06-18 19:56:04 +12:00
nieve
30944579d7 add default filter config 2024-06-18 00:21:00 -04:00
846377b586 implement mascots 2024-06-17 22:29:52 +12:00
df8d36c661 serve ffmpeg.wasm 2024-06-16 19:53:16 +12:00
5c73f043cd add preference option 2024-06-16 15:01:17 +12:00
f8f964741a super minimal rebrand 2024-06-02 22:33:45 +12:00
Ben Sherman
17c7738d6e
Properly apply REDLIB_DEFAULT_HIDE_SIDEBAR_AND_SUMMARY
This change fixes the REDLIB_DEFAULT_HIDE_SIDEBAR_AND_SUMMARY environment variable being ignored.
2024-05-30 20:40:16 -07:00
Matthew Esposito
bd47c206a1 fix(oauth): Make Android user-agent patching unconditional 2024-05-30 18:08:45 -04:00
Matthew Esposito
1715b36ae9 Update fix for submitted route 2024-05-29 20:02:56 -04:00
Matthew Esposito
892b0e89c8 Cargo fmt 2024-05-29 19:15:54 -04:00
Matthew Esposito
a64e2143f3 Fix Display impl, resolving clippy 2024-05-29 18:51:20 -04:00
Matthew Esposito
e13d9b7239
Merge pull request #86 from EMarshal/main
Update hide HLS env var to match documentation
2024-05-29 18:49:40 -04:00
Matthew Esposito
8c67d33721
Merge pull request #102 from ismailkarsli/main
added geo_filter query param to /r/popular endpoint
2024-05-29 18:48:48 -04:00
Matthew Esposito
093d240530
Merge branch 'main' into feat/hide-summary-and-sidebar 2024-05-29 18:46:10 -04:00
Matthew Esposito
6b2aab23c8
Merge pull request #92 from ButteredCats/fix_preview_captions
Update embedding Reddit preview links to include captions and support i.redd.it embeds
2024-05-29 18:44:48 -04:00
Matthew Esposito
6b11d936b3 Fix clippys 2024-05-29 18:44:19 -04:00
Butter Cat
34692359cf
Merge branch 'redlib-org:main' into fix_preview_captions 2024-05-29 18:42:39 -04:00
Matthew Esposito
5a0f0f96f5 Update OAuth resources 2024-05-29 18:37:13 -04:00
Matthew Esposito
273d889f1b Fix retrieval of multi-subs 2024-05-29 18:36:56 -04:00
Butter Cat
62b791bb24
Add in support for embedding i.redd.it images and gifs and remove leftover println 2024-05-23 21:29:36 -04:00
Butter Cat
2f2cded671
Make sure new system can handle both normal and external previews 2024-05-22 17:22:10 -04:00
Butter Cat
75b0149313
Remove useless replace 2024-05-22 16:34:39 -04:00
Butter Cat
50fad938dd
Fix infinite loop when replacing text that contains dollar signs 2024-05-22 16:31:07 -04:00
Ales Lerch
b6f5831d10 feat: adds hide summary sidebar option 2024-05-13 23:49:59 +02:00
İsmail Karslı
565b50646f
added geo_filter query param to /r/popular endpoint 2024-04-25 14:01:06 +03:00
Butter Cat
6484ebf897
Fix failing check 2024-04-14 17:32:10 -04:00
Butter Cat
3f863c8991
Prevent panic if image_caption is empty, don't replace <p>'s in case text is inside them with the image, update test to reflect change in image replacing 2024-04-14 17:26:43 -04:00
Butter Cat
e581f432dd
Use substring instead of .remove and .pop, change image_text to image_caption to better reflect its usage, only replace quotes in image_caption when needed, and add comments for what some of the code does 2024-04-10 10:47:24 -04:00
Butter Cat
6d83b07aaa
Update embedding Reddit preview links to include captions where applicable 2024-04-09 18:33:13 -04:00
Butter Cat
89140c8cf7
Actually fix checks this time 2024-04-07 19:59:54 -04:00
Butter Cat
99048c4683
Fix failing checks 2024-04-07 19:51:20 -04:00
Butter Cat
f7c182dcd8
Fix a couple of edge cases with image embedding and don't check if REDDIT_PREVIEW_REGEX matches before executing loop 2024-04-07 19:22:20 -04:00
Éli Marshal
4f6a14739b Update hide HLS env var to match documentation 2024-04-07 14:43:39 -06:00
Butter Cat
75b139dff2
Update image link test to account for embedded images 2024-04-07 12:08:53 -04:00
Butter Cat
10499df423
Make image preview links embed 2024-04-07 12:07:53 -04:00
Butter Cat
858299c861
Add test for rewriting multiple preview links 2024-04-07 11:24:18 -04:00
Butter Cat
4f0b29f930
Fix failing checks 2024-03-30 18:53:46 -04:00
Butter Cat
4e2648280d
Fix multiple Reddit preview links becoming the same 2024-03-30 18:36:28 -04:00
Nazar
3bb5dc5f3e
Update dependencies (Hyper v1.x) (#39)
* Cargo update

* Update major non-breaking changes

* Add deprecation feature-flags to hyper v0.14

* Semi-upgrade hyper-rustls

* Revert deprecated warnings
2024-02-06 08:01:59 -05:00
Midou36O
35927287f1
Replace www.unddit.com with undelete.pullpush.io (#42)
* Replace www.unddit.com with undelete.pullpush.io

* Update comment

---------

Co-authored-by: Matthew Esposito <matt@matthew.science>
2024-02-05 16:50:09 -05:00
Nazar
469d0994f1
Handle errors from reddit (#35)
* Fix error handling logic

A 401 code is still an Ok(<...>) response

* Fix json key

* Run `cargo fmt`
2024-02-02 14:53:15 -05:00
Matthew Esposito
99097da6b8
Remove pedantic clippy's 2024-01-28 13:36:27 -05:00
Nazar
3d2c936a9e
Refresh OAuth on 401 only (#33) 2024-01-28 09:28:42 -05:00
Matthew Esposito
03e267f02e
Fix pedantic clippy 2024-01-27 23:34:23 -05:00
Matthew Esposito
6c2579cda9
Add check for unauthorized - refresh token 2024-01-27 23:31:21 -05:00
Matthew Esposito
ea3d248766
Update oauth_resources.rs 2024-01-24 14:30:17 -05:00
Matthew Esposito
9f9ae45f6e
Add many Clippy's, fix many Clippy's 2024-01-19 20:16:17 -05:00
Matthew Esposito
95373f8261
More succinct fix to header parsing 2024-01-19 19:06:05 -05:00
Matthew Esposito
3609564db0
Add error logging when rendering the Error page 2024-01-19 19:00:13 -05:00
Matthew Esposito
fcde6ff689
Fix client.rs - properly return Err on invalid header (fix #28) 2024-01-19 18:58:08 -05:00
Matthew Esposito
c597a20311
Add websockets URL to parsing 2024-01-03 20:06:08 -05:00
Matthew Esposito
89ba46e15d
Redirect and proxy redditstatic gifs in-body (fix #14) 2024-01-03 09:36:19 -05:00
Matthew Esposito
3dee29f3ef
Add scrolling to highlighted comment (fix #13) 2024-01-02 19:43:00 -05:00
Matthew Esposito
dea805936c
Fix preview URL (fixes libreddit/libreddit/issues/559) 2024-01-02 19:21:24 -05:00
Matthew Esposito
6d97f4c8dd
Change Tokio tests - fix GHA runner (again) 2023-12-30 21:33:27 -05:00
Matthew Esposito
cd836308db
Update oauth.rs to use Android client only (fixes #8) 2023-12-30 17:32:54 -05:00
Matthew Esposito
d327ab2c95
Small changes to params generation in subreddit.rs 2023-12-30 17:10:46 -05:00
Matthew Esposito
53e8811f32
Remove all stats tracking (fixes #7) 2023-12-30 10:22:49 -05:00
Matthew Esposito
d86b77ab56
Reset test threads to 1 (should fix test issues in GHA) 2023-12-29 20:33:43 -05:00
Matthew Esposito
90a800ff44
Remove share parameters at canonical_path 2023-12-29 19:34:57 -05:00
Matthew Esposito
45d8f1bbc8
Better handle redirects with new OAuth endpoints 2023-12-29 19:28:41 -05:00
Matthew Esposito
3a4a39f577
Add config tests 2023-12-28 19:15:00 -05:00
Matthew Esposito
ce0c6eca8a
Fix obfuscated link handling 2023-12-28 18:21:07 -05:00
Matthew Esposito
878ef8e95e
Change formatting of autogenerated script 2023-12-28 17:36:45 -05:00
Matthew Esposito
0955f902f8
Fix update_oauth_resources.sh 2023-12-28 15:49:29 -05:00
Matthew Esposito
9f41af6eee
Improve spoofing - match headers more closely, pull in real versions/builds 2023-12-28 15:37:02 -05:00
Matthew Esposito
9850109326
Minor stylistic changes 2023-12-28 12:42:06 -05:00
Matthew Esposito
28f39329ad
Add package name to instance_info in order to identify redlib instances 2023-12-28 11:21:56 -05:00
Matthew Esposito
42902cc8d0
Add test for popular globalization 2023-12-28 10:40:17 -05:00
Matthew Esposito
b43ed01958
Fix /r/popular localization - set geo filter to global 2023-12-28 10:30:42 -05:00
Matthew Esposito
5e68a66e40
Accept legacy config files 2023-12-27 00:11:06 -05:00
Matthew Esposito
457b0bd57e
Accept legacy environment variables 2023-12-26 23:16:36 -05:00
Matthew Esposito
47822d8d6c
Fix clippy warning 2023-12-26 23:15:06 -05:00
Matthew Esposito
e452b8d6b5
Update oauth::choose to use new fastrand::choose_multiple 2023-12-26 20:00:36 -05:00
Matthew Esposito
c5d11f220e
Fix clippy warnings 2023-12-26 18:27:25 -05:00
Matthew Esposito
b0f985c687
Libreddit -> Redlib 2023-12-26 18:25:52 -05:00
Matthew Esposito
3e3c30d7f1
Update cookie + changes 2023-12-26 16:24:53 -05:00
Matthew Esposito
b7bf9c74be
Fix import error 2023-12-26 15:54:43 -05:00
Matthew Esposito
d76051302e
Merge remote-tracking branch 'origin/pull/738' 2023-12-26 15:51:15 -05:00
Matthew Esposito
90d1831352
Merge remote-tracking branch 'origin/pull/819' 2023-12-26 15:48:27 -05:00
Matthew Esposito
3ac2048247
Merge remote-tracking branch 'origin/pull/861' 2023-12-26 15:47:33 -05:00
Matthew Esposito
de268314f3
Fix tests 2023-12-26 15:42:41 -05:00
Matthew Esposito
0eb5e18cef
Merge remote-tracking branch 'origin/pull/536' 2023-12-26 15:20:21 -05:00
Matthew Esposito
fc4b686607
Merge remote-tracking branch 'origin/pull/746' 2023-12-26 15:18:49 -05:00
Matthew Esposito
82fdcf7443
Merge remote-tracking branch 'origin/pull/768' 2023-12-26 15:15:06 -05:00
Matthew Esposito
cc9023dc64
Merge remote-tracking branch 'origin/pull/865' 2023-12-26 15:12:36 -05:00
Matthew Esposito
f5b54197c4
Merge remote-tracking branch 'origin/pull/808' 2023-12-26 15:11:44 -05:00
Matthew Esposito
9b71822be6
Match on both http and https in format_url (414) 2023-12-26 15:11:16 -05:00
Peter Sawyer
2d64c092ea Fix short links again. Just using a split 2023-11-21 21:34:13 -08:00
hinto.janai
3e236e7ab5
client.rs: remove some String allocations 2023-10-27 09:05:22 -04:00