Commit Graph

522 Commits

Author SHA1 Message Date
spikecodes
8c80946121
Fix multireddit sidebars 2021-01-30 20:24:09 -08:00
spikecodes
21d96e261f
Set subscriptions as default front page 2021-01-30 20:18:57 -08:00
spikecodes
4ae2191392
Refactor subscriptions 2021-01-30 18:10:38 -08:00
spikecodes
d62a3ab86b Refactor redirect path setting 2021-01-30 17:50:26 -08:00
Matthew Crossman
9b7cd1da5a
Prevent adding duplicate subs. 2021-01-31 12:45:19 +11:00
spikecodes
a301f1ecb6 Simplify redirect path 2021-01-30 17:38:47 -08:00
Matthew Crossman
f14639ee00
Simplify sub list editing. 2021-01-31 12:25:07 +11:00
Matthew Crossman
b527735f6f
Fix cookie deletion when removing last sub. 2021-01-31 12:17:43 +11:00
Matthew Crossman
449899962a
Change subscription to get. Add subs to settings. 2021-01-30 22:27:49 +11:00
Matthew Crossman
11e4ff42ed
Clean-up and more consistent styles. 2021-01-30 19:33:38 +11:00
Matthew Crossman
c71df35b22
Add basic unsubscribe. 2021-01-30 18:18:53 +11:00
Matthew Crossman
345308a9ac
Basic subscribe functionality. 2021-01-30 18:00:00 +11:00
Matthew Crossman
75bbcefbec
Display sub list from list in cookie.
Very basic sub list setup. Cookie must be manually added in devtools.
2021-01-30 16:00:55 +11:00
spikecodes
49a6168607 Improve CSP 2021-01-29 14:39:03 -08:00
spikecodes
f55ea5a353 Specify default headers for security 2021-01-28 21:53:10 -08:00
spikecodes
5fe9ce8d7b Refactor JSON parsing error logging 2021-01-27 21:48:32 -08:00
spikecodes
8c04365049 Improve error logging 2021-01-27 17:48:58 -08:00
spikecodes
d5b1c3a5bb Fix connection reset error 2021-01-26 11:00:07 -08:00
spikecodes
f038aa61f4 Log JSON parse errors and Reddit request failures 2021-01-26 10:54:57 -08:00
spikecodes
f72c9d39be Simplify proxy 2021-01-25 17:01:02 -08:00
robrobinbin
acd2cff747
Lower number of cached items 2021-01-24 11:08:24 +01:00
robrobinbin
226d39328c
Make it 60 2021-01-23 22:45:41 +01:00
Robin
b2ad2f636c Resolve merge conflicts 2021-01-23 10:55:11 +01:00
Robin
077c222a4e Experiment with caching 2021-01-23 10:48:33 +01:00
spikecodes
2270b6cf95 Reduce post padding 2021-01-21 21:25:51 -08:00
spikecodes
6641e242af Allow NSFW searching 2021-01-20 18:26:58 -08:00
spikecodes
dea7f33910 Add code optimizations 2021-01-20 17:38:34 -08:00
spikecodes
140c1b1bfa Small fixes 2021-01-18 13:12:59 -08:00
spikecodes
21763c51cd Make number formatting inclusive 2021-01-17 12:59:40 -08:00
spikecodes
138f8320e9 Create media struct 2021-01-17 12:58:12 -08:00
Robin
090ca1a140 Add comment counter and other post improvements 2021-01-17 20:39:57 +01:00
spikecodes
6127f2a90c Support forced HTTPS redirects #39 2021-01-16 22:04:03 -08:00
spikecodes
471d181284 Disable production error logging 2021-01-16 15:17:08 -08:00
spikecodes
0e48c66b8c Fix user agent 2021-01-16 15:13:34 -08:00
spikecodes
a0bc1732cf Moderator and admin distinguishers 2021-01-16 15:02:24 -08:00
spikecodes
0f6e73dd87 Reformat code 2021-01-16 11:50:12 -08:00
spikecodes
151490faf0 Add space next to comment collapse marker 2021-01-16 11:49:49 -08:00
spikecodes
fdf60e7255 Separate datetime into relative and absolute 2021-01-16 11:40:32 -08:00
spikecodes
2385fa33ec Use ureq until AWC IO error is fixed 2021-01-15 21:26:51 -08:00
spikecodes
1fd688eeed Improve awc error log 2021-01-15 20:57:51 -08:00
spikecodes
65543a43b2 Make User-Agent Reddit-compliant 2021-01-15 20:29:34 -08:00
spikecodes
3a9b2dba32 Fix error log 2021-01-15 15:35:09 -08:00
spikecodes
59021b9331 Switch back to ureq temporarily 2021-01-15 15:28:51 -08:00
spikecodes
078d6fe25b Request about pages before posts 2021-01-15 15:05:55 -08:00
spikecodes
aef0442e9d Add rate-limit warning 2021-01-15 11:24:12 -08:00
spikecodes
bca2a7e540 Error logging 2021-01-15 10:58:53 -08:00
spikecodes
0c014ad41b Comment utils.rs 2021-01-14 15:13:52 -08:00
spikecodes
32b8637c7e Handle failed redirects 2021-01-14 14:56:28 -08:00
spikecodes
18684c934b Refactor subreddit searching 2021-01-14 11:45:04 -08:00
spikecodes
cf4c5e1fe8 Implement #53 2021-01-14 10:57:50 -08:00
robrobinbin
292f8fbbb7 remove lines that aren't used yet 2021-01-14 19:33:17 +01:00
robrobinbin
735f79d80b
Merge pull request #2 from spikecodes/master
Merge upstream into code
2021-01-14 19:29:06 +01:00
robrobinbin
a85a4278f6 Add subreddits to search results 2021-01-14 19:22:50 +01:00
spikecodes
dbe617d7eb Switch to awc 2021-01-14 09:53:54 -08:00
spikecodes
842d97e9fa Fix short post IDs 2021-01-13 21:02:48 -08:00
spikecodes
0bf5576427 Categorize routes and refactor error handlers 2021-01-13 19:53:52 -08:00
spikecodes
dd027bff4b Refactor flair parsing 2021-01-13 18:19:40 -08:00
spikecodes
f95ef51017 Add days to time() 2021-01-13 16:31:24 -08:00
spikecodes
740641cb4e Move nested_val() to user.rs 2021-01-13 15:55:10 -08:00
spikecodes
09c98c8da6 Refactor code 2021-01-13 12:52:00 -08:00
robrobinbin
c6627ceece
Merge branch 'master' into rich-flairs 2021-01-13 08:27:39 +01:00
robrobinbin
d9affcdefc Rich flairs 2021-01-13 08:23:48 +01:00
spikecodes
96607256fc Add Favicon 2021-01-12 20:18:20 -08:00
spikecodes
eb9a0dcb4a Fix GIFs 2021-01-12 19:52:02 -08:00
robrobinbin
b0540d2c57 Rich flairs 2021-01-13 00:10:06 +01:00
robrobinbin
bbe7024323 Start richtext flairs 2021-01-12 22:43:03 +01:00
robrobinbin
32e1469e11
whitespace 2021-01-12 20:03:54 +01:00
robrobinbin
2d4ca2379f
whitespace 2021-01-12 20:02:35 +01:00
robrobinbin
374f53eb32 Relative timestamps for recent posts 2021-01-12 19:59:32 +01:00
spikecodes
eb735a42fe Handle comment parsing errors 2021-01-11 18:05:13 -08:00
spikecodes
541c741bde Parse GIFs correctly 2021-01-11 17:47:14 -08:00
spikecodes
48d2943f72 Fix subreddits not showing sidebars 2021-01-11 16:44:31 -08:00
spikecodes
6bbc90bc0d Clean Subreddit struct 2021-01-11 16:35:50 -08:00
robrobinbin
6dbd002acd Add direct link to thumbnail 2021-01-11 23:08:12 +01:00
spikecodes
91746908a1 Switch to ureq 2021-01-11 10:33:48 -08:00
spikecodes
bb8273bab4 Fix #41 2021-01-11 10:33:42 -08:00
spikecodes
08683fa5a6 Light theme 2021-01-10 18:15:34 -08:00
spikecodes
c58b077330 Update Dependencies 2021-01-10 13:20:47 -08:00
spikecodes
f445c42f55 Wide UI Mode 2021-01-10 13:08:36 -08:00
spikecodes
fac56d7f87 Markdown spoilers and post footers on videos 2021-01-08 21:57:36 -08:00
spikecodes
ef1ad17234 Unknown path error handling 2021-01-08 21:11:20 -08:00
spikecodes
b8cdc605a2 Front page config and settings note 2021-01-08 20:55:40 -08:00
spikecodes
ef2f9ad12b Unify preferences under one struct 2021-01-08 17:50:03 -08:00
spikecodes
b13874d0db Add "hide nsfw" option 2021-01-08 17:35:04 -08:00
spikecodes
6e8cf69227 Fix Default Comment Sorting 2021-01-07 10:32:55 -08:00
spikecodes
3444989f9a Default Comment Sort Setting 2021-01-07 08:38:05 -08:00
spikecodes
7e96bb3d80 Optimize use of Result<> 2021-01-06 21:27:24 -08:00
spikecodes
b33d79ed9b Cache robots.txt 2021-01-06 14:19:10 -08:00
spikecodes
0f506fc41b Cache proxied media 2021-01-06 11:11:04 -08:00
spikecodes
3260a4d596 Disable "secure" flag for cookies 2021-01-06 09:52:23 -08:00
spikecodes
da5c4603d9 Switch from chrono to time-rs 2021-01-05 20:01:21 -08:00
spikecodes
b50fa6f3ae Settings Button 2021-01-05 18:16:32 -08:00
spikecodes
aa7b4b2af7 Settings with Layouts 2021-01-05 18:04:49 -08:00
spikecodes
2b0193f5ea Fix proxying of NSFW images 2021-01-05 08:15:34 -08:00
spikecodes
df89c5076e Compact Libreddit Posts on Mobile 2021-01-04 19:26:41 -08:00
spikecodes
c046d00060 Handle Unwrapping Errors 2021-01-03 21:31:21 -08:00
Nathan Moos
b40d21e559 Add controversial sort order 2021-01-03 21:00:36 -08:00
spikecodes
1dd0c4ee20 Fix User Icon Proxy 2021-01-03 18:23:57 -08:00
spikecodes
0dd114c166 Post upvote ratio, permalink and reddit link 2021-01-03 13:06:49 -08:00
spikecodes
67090e9b08 Fix Proxied Icons 2021-01-03 10:22:41 -08:00
spikecodes
d97fb49fde Fix post::item IDs 2021-01-02 22:46:02 -08:00
spikecodes
a3384cbaa6 Fix search pages 2021-01-02 22:37:54 -08:00
spikecodes
5ea504e6e8 Restrict Proxy to Reddit Domains 2021-01-02 20:50:23 -08:00
spikecodes
f49bff9853 Optimize Sequencing 2021-01-02 11:09:26 -08:00
spikecodes
4ec529cdb8 Rewrite Reddit Links to Libreddit 2021-01-02 10:58:21 -08:00
spikecodes
779de6f8af Fix Wiki Titles 2021-01-01 22:34:25 -08:00
spikecodes
0925a9b334 Add Wiki Pages 2021-01-01 22:21:43 -08:00
spikecodes
2f2ed6169d Optimize use of .unwrap() 2021-01-01 15:28:13 -08:00
spikecodes
59ef30c76d Remove .clone() in favor of borrowing 2021-01-01 12:55:09 -08:00
spikecodes
d43b49e7e4 Optimize Rust code with Clippy 2021-01-01 12:33:57 -08:00
spikecodes
39ba50dada Error Page 2020-12-31 21:03:44 -08:00
spikecodes
2d77a91150 Refactor Page Titles and Add Subreddit/User Titles 2020-12-31 20:21:56 -08:00
spikecodes
a6dc7ee043 Rewrite + Searching 2020-12-31 15:54:13 -08:00
spikecodes
aa9aad6743 Stickied Posts 2020-12-29 19:01:02 -08:00
spikecodes
f65ee2eb6a Sort Top by Timeframe 2020-12-29 17:11:47 -08:00
spikecodes
f00ef59404 Fix proxy-less deployment 2020-12-28 20:49:15 -08:00
spikecodes
443b198c12 Markdown and Subreddit Sidebars 2020-12-28 18:42:46 -08:00
spikecodes
68495fb280 Add Pages to User Profiles 2020-12-27 12:36:10 -08:00
spikecodes
dad01749e6 Replace Responsive Feature with Secure 2020-12-25 18:06:33 -08:00
spikecodes
ace21b21d5 Redesign User/Subreddit About Boxes 2020-12-23 22:16:04 -08:00
spikecodes
280e16bd7f Fix Subreddit Icons 2020-12-23 20:36:49 -08:00
spikecodes
0957f2e339 NSFW Support 2020-12-22 18:29:43 -08:00
spikecodes
dc0b5f42e6 Update README with Reddit Comparison 2020-12-21 21:40:06 -08:00
spikecodes
11cfbdc3ed More Replies Button 2020-12-21 17:17:40 -08:00
spikecodes
4b7cbb3de2 Fix User Icons 2020-12-21 14:12:53 -08:00
spikecodes
b1a572072c Highlight Post Authors in Comments 2020-12-21 08:38:24 -08:00
spikecodes
da971f8680 Optimized Nested Comments for Mobile, Added IDs 2020-12-20 20:52:15 -08:00
spikecodes
565f4f23b3 Multireddit Support & Referrer Policy 2020-12-20 17:45:26 -08:00
spikecodes
ef3820a2e1 User Flairs 2020-12-20 11:29:23 -08:00
spikecodes
1678245750 Add Sorting to Short Links 2020-12-20 09:10:37 -08:00
spikecodes
7b8f694c8c Basic Nested & Collapsible Comments 2020-12-19 19:54:46 -08:00
spikecodes
75bc170eba Rewrite URL Dispatch 2020-12-14 16:35:04 -08:00
spikecodes
528fe15819 Add million support 2020-12-07 11:36:05 -08:00
Scoder12
312d162c09 Fix mistakes 2020-12-07 10:53:22 -08:00
Scoder12
9f19d729d1 Add number format utility 2020-12-07 10:32:46 -08:00
spikecodes
6794f7d6ba Show and Log Version 2020-12-05 21:29:25 -08:00
spikecodes
04310c58e0 Mobile Responsive 2020-12-05 20:54:43 -08:00
spikecodes
f33af75267 Proxy Thumbnails 2020-11-30 21:10:08 -08:00
spikecodes
759c9fc66b Revert to reqwest 2020-11-30 20:57:15 -08:00
spikecodes
9d78266494 Use base64 for encoding & Upgrade Media Handling 2020-11-30 20:33:55 -08:00
spikecodes
9a6430656d Added Percent Encoding Support 2020-11-29 18:50:29 -08:00
spikecodes
8f157c0b40 Fix Static File Bundling 2020-11-29 13:46:53 -08:00
spikecodes
3902a36ea3 Reorganize Crate References 2020-11-25 13:53:30 -08:00
spikecodes
74917c672f Update README.md 2020-11-23 18:25:22 -08:00
spikecodes
b218ec6065 Make Proxy Optional Feature 2020-11-23 16:57:37 -08:00
spikecodes
295d1788d8 Comment History 2020-11-23 11:33:43 -08:00
spikecodes
a8f7fa6941 Fix Proxy Log 2020-11-23 09:11:24 -08:00
spikecodes
a1e57d874f Build Media Proxy 2020-11-22 20:22:51 -08:00
spikecodes
16bf825e14 Add Address Command-line Argument 2020-11-22 19:21:07 -08:00
spikecodes
1a33582966 Add Sub Member Count & Fix Icons 2020-11-22 16:43:23 -08:00
spikecodes
0f2a3713ef Unify Post Fetching into 1 Function 2020-11-20 22:05:27 -08:00
spikecodes
f75b48fdc9 Fit Post Fetching into 1 Request 2020-11-20 21:04:35 -08:00
spikecodes
cef3266186 Add Status Codes to Error Pages 2020-11-20 20:43:20 -08:00
spikecodes
0340e834a6 Implement robots.txt 2020-11-20 19:33:38 -08:00
spikecodes
4dbb5367e7 Use surf instead of reqwest 2020-11-20 18:31:11 -08:00
spikecodes
2236567b58 Fix style.css Content-Type and add robots.txt 2020-11-19 21:28:50 -08:00
spikecodes
0a3f333a97 Fix Error Handling 2020-11-19 21:08:22 -08:00
spikecodes
1960e8a0fb Error Pages 2020-11-19 20:42:18 -08:00
spikecodes
7a176c6804 Add pages to subreddits 2020-11-19 13:49:32 -08:00
spikecodes
0054557c86 Make a request() utility 2020-11-18 18:50:59 -08:00
spikecodes
f455e2095d Use std::fs over actix-files 2020-11-18 16:31:46 -08:00
spikecodes
05ea0fe1fd Fixed Sorting 2020-11-17 16:03:28 -08:00
spikecodes
2c06ae1d8f Create utils.rs for Utilities 2020-11-17 11:37:40 -08:00
spikecodes
4350d5b7b3 Update Dependencies 2020-11-16 20:36:36 -08:00
spikecodes
6853d21ea9 1.1.2 Flairs 2020-11-16 18:49:08 -08:00
spikecodes
a74f37e965 Added server start log 2020-11-16 14:45:20 -08:00
spikecodes
c5b64e2168 Rustfmt Code Format 2020-10-25 20:57:19 -07:00
spikecodes
1e7bbb385c Add Sorting to Homepage 2020-10-25 20:30:34 -07:00
spikecodes
1b5a3a59c0 Add Markdown Table Support 2020-10-25 19:55:00 -07:00
spikecodes
a1e6f95151 Switch Pages to UTF-8 2020-10-25 19:05:09 -07:00
spikecodes
bfc05adbce Escape HTML Text 2020-10-25 17:52:57 -07:00
spikecodes
9bd1b247bd Actix Rewrite 2020-10-25 13:25:59 -07:00