Commit Graph

522 Commits

Author SHA1 Message Date
Matthew E
d4ca376e8d
Add format_url tests (#615) 2022-11-05 23:51:56 -06:00
Daniel Valentine
c6487799ed
Redirect /:id to canonical URL for post. (#617)
* Redirect /:id to canonical URL for post.

This implements redirection of `/:id` (a short-form URL to a post) to
the post's canonical URL. Libreddit issues a `HEAD /:id` to Reddit to get
the canonical URL, and on success will send an HTTP 302 to a client with
the canonical URL set in as the value of the `Location:` header.

This also implements support for short IDs for non-ASCII posts, c/o
spikecodes.

Co-authored-by: spikecodes <19519553+spikecodes@users.noreply.github.com>
2022-11-05 02:29:04 -06:00
Daniel Valentine
ae3ea2da7c
HTTP compression (Reddit -> Libreddit -> client) (#612)
Implements HTTP compression, between both Reddit and Libreddit and Libreddit
and a web browser. Compression between Reddit and Libreddit is mandatory,
whereas compression between Libreddit and a client is opt-in (client must
specify a compressor in the Accept-Encoding header).

Supported compressors are gzip and brotli. gzip support is ubiquitous,
whereas brotli is supported by almost all modern browsers except Safari
(iOS, iPhone, macOS), although Safari may support brotli in the future.

Co-authored-by: Matthew E <matt@matthew.science>
2022-11-03 22:04:34 -06:00
Spike
170ea384fb
Support /comments endpoint (closes #568)
Code based on @Daniel-Valentine's [implementation](e2c84879d6)
2022-11-01 20:53:42 -07:00
spikecodes
b170a8dd99
Switch Reveddit to Unddit 2022-10-31 22:30:31 -07:00
spikecodes
b4d3f03335
Upgrade dependencies 2022-10-31 20:23:59 -07:00
Connor Holloway
6c202a59b0 Make the fixed navbar optional
Adds another on/off preference (default: on, keeps same
behaviour) for the fixed navbar.
When off the navbar will not remain at the top of the
page when scrolling.
This is useful for small displays such as phones where
otherwise the navbar takes up a sizeable portion of
the viewport.
2022-06-18 22:53:30 +01:00
spikecodes
f5cd48b07f
Fix #514 2022-05-21 21:06:03 -07:00
Mario A
90828cc71c
Fix "Post url contains non-ASCII characters" error (#479) 2022-05-21 05:48:59 +00:00
Nick Lowery
322aa97a18
Fix HTML encoding in templating (#404) 2022-05-21 05:28:31 +00:00
spikecodes
428dc58e3c
Update to v0.22.8 2022-05-20 19:20:44 -07:00
mikupls
60c7b6b23f
Embed css themes to simplify adding and testing new themes (#489) 2022-05-21 01:41:31 +00:00
spikecodes
bb7fb1313d
Fix multireddit subscription redirect url 2022-05-15 13:50:17 -07:00
mikupls
eb6c5e5e1e
Fix backslash url rewriting and add tests for rewrite_urls. (#461)
* Fix backslash url rewriting.

Add test for rewrite_urls.

Fixes #281.

* Update to v0.22.5

Co-authored-by: spikecodes <19519553+spikecodes@users.noreply.github.com>
2022-03-26 20:26:30 +00:00
Nick Lowery
f0a6bdc21b
Fix sorting buttons on r/all and r/popular (#402)
* Fix sorting buttons on r/all and r/popular

* Bump version to v0.22.2

* Fix empty sidebar in r/all and r/popular

Co-authored-by: spikecodes <19519553+spikecodes@users.noreply.github.com>
2022-03-15 03:39:39 +00:00
Nick Lowery
70ff150ab4
Add user listing buttons (#400)
* Add user listing buttons

* Update to v0.22

Co-authored-by: spikecodes <19519553+spikecodes@users.noreply.github.com>
2022-03-13 19:06:27 +00:00
spikecodes
977cd0763a
Fix #379 2022-01-05 16:46:45 -08:00
spikecodes
fcadd44cb3
Update dependencies 2022-01-05 16:39:56 -08:00
Andrew Kaufman
9c325c2cbf
Search fixes (#384)
* Default to searching within subreddit

* Redirect to subreddit from search
2022-01-05 14:06:41 -08:00
spikecodes
f1b3749cf0
Fix #378 — formatting of dates/times 2021-12-29 12:48:57 -08:00
spikecodes
0708fdfb37
Cover more Reddit domains with libreddit link rewrites 2021-12-29 11:38:35 -08:00
spikecodes
6b59976fcf
Fix #376 2021-12-27 23:16:01 -08:00
spikecodes
f9b3981448
Fix debug log in post.rs 2021-12-27 19:56:37 -08:00
spikecodes
db3196df5a
Use Reveddit to show removed posts/comments. Closes #299 2021-12-27 19:40:35 -08:00
spikecodes
b3d4f6f91c
Show external page links again 2021-12-27 18:00:19 -08:00
spikecodes
90fa0b5496
Automatically generate release notes 2021-12-27 10:15:25 -08:00
spikecodes
7aeabfc4bc
Rewrite Reddit post links to Libreddit equivalents 2021-12-26 21:18:20 -08:00
mikupls
341c623be8
Refactor Media parsing (#334)
* Parse video data from cross_post_parent_list as vanilla Reddit does.

introduce testdata directory for testing JSON parsing functions.

refactor Media::parse for slightly more readability.

Add various test cases.

* Trim down to just refactoring

Co-authored-by: Spike <19519553+spikecodes@users.noreply.github.com>
2021-12-20 01:07:20 +00:00
spikecodes
0656756d21
Fix #196 2021-11-29 22:29:41 -08:00
spikecodes
364c29c4d5
Use resized icons for awards. Fixes #346 2021-11-28 14:47:50 -08:00
Nick Lowery
888e7b302d
Filter subreddits and users (#317)
* Initial work on filtering subreddits and users

* Fix doubly-prefixed subreddit name in search alt text (e.g. r/r/pics)

* Don't set post title to "Comment" if empty - this could throw off actual posts with the title "Comment"

* Filter search results

* Fix filtering to differentiate between "this subject itself is filtered" vs "all posts on this current page have been filtered"

* Remove unnecessary check

* Clean up

* Cargo format

* Collapse comments from filtered users

Co-authored-by: spikecodes <19519553+spikecodes@users.noreply.github.com>
2021-11-26 04:02:04 +00:00
Diego Magdaleno
bd413060c6
Support displaying awards (#168)
* Initial implementation of award parsing

* Posts: Implement awards as part of post

* Posts: remove parse_awards dead code

* Posts: initial implementation of displaying Awards at the post title

* Posts: Proxy static award images

* Client: i.redd.it should take path as argument not ID

* Posts: Just like Reddit make award size 16px

* Templates: limit the awards to 4 awards to increase performance

* Comments: Make awards a property of comments and display them

* Format and correct /img/:id

* Update comment.html

* [Optimization] Awards is not longer async

* [Revert] Posts can now display more than 4 awards again

* [Implementation] Awards not display on the frontpage

* [Implementation] Display count on awards

* Post: Start working on awards css

* Awards: Move the image size to css

* Awards: Start implementing tooltips

* Refactor awards code and tweak CSS indentation

* Unify Awards::new and Awards::parse

* Use native tooltips and brighten awards background

Co-authored-by: Spike <19519553+spikecodes@users.noreply.github.com>
2021-11-25 02:08:27 +00:00
spikecodes
8e332b0630
Show full subreddit results in search 2021-11-23 22:24:23 -08:00
spikecodes
85ae7c1f60
Fix indentation and formatting 2021-11-23 22:23:29 -08:00
spikecodes
4faa9d46d6
Fix HTTPS connector 2021-11-21 22:44:05 -08:00
mikupls
768820cd4c
Render markdown correctly in text post previews by using selftext_html. (#335)
* Render markdown correctly in text post previews by using selftext_html.

I was mistakenly under the impression that we somehow render markdown ourselves, but turns out we just take whatever HTML reddit gives us, and we also need to do this for text previews.

Use CSS to limit the size of the previews instead of truncating in the template.

Fix table CSS.

* Fix post_body padding and trim post_previews

Co-authored-by: spikecodes <19519553+spikecodes@users.noreply.github.com>
2021-11-21 23:17:52 +00:00
mikupls
5d9c320a7e
Format post and comment votes with a decimal place, like vanilla reddit does. (#324)
* Format post and comment votes with a decimal place, like vanilla reddit does.

Before this change, a vote count of 1999 was displayed as 1k, which is a pretty big gap. The displayed count also differed from what Reddit does. Now, the behaviour is consistent.

Added some tests for format_num.

* Provide more space for post scores

Co-authored-by: spikecodes <19519553+spikecodes@users.noreply.github.com>
2021-11-21 04:07:45 +00:00
mikupls
c2053524c7
Add text post previews. (#328)
* Add text post previews.

* Add mask gradient over post preview text

* Increase post title font weight for contrast

Co-authored-by: spikecodes <19519553+spikecodes@users.noreply.github.com>
2021-11-20 21:13:50 +00:00
mikupls
731a407466
Collapse (sticky) bot comments by default. (#321)
* Collapse bot comments by default.

Comments are considered bot comments if they are posted by a moderator and are stickied. Some false positives are expected.

* Remove unneeded String conversion

Co-authored-by: spikecodes <19519553+spikecodes@users.noreply.github.com>
2021-11-19 05:42:53 +00:00
spikecodes
34ea679519
Update crates and optimize parameters 2021-11-14 18:51:36 -08:00
mikupls
0f7ba3c61d
Add "open in reddit" button to all pages (#304)
* Pass the url parameter to all templates. Add a reddit_link to the navbar, which opens the current url on reddit.

* Add icon for reddit link

Co-authored-by: spikecodes <19519553+spikecodes@users.noreply.github.com>
2021-11-15 02:39:33 +00:00
Nick Lowery
2486347b14
Fix follows not being case-sensitive (#316) 2021-11-15 00:45:18 +00:00
spikecodes
1d4ea50a45
Add setting to autoplay videos 2021-10-25 21:27:55 -07:00
dacousb
350b796571
Support Deployment to Heroku (#280)
* Added heroku.yml

* Added app.json

* PORT as env var
2021-09-19 19:03:01 +00:00
spikecodes
6a4191f3b5
Fix #272 2021-09-09 17:28:55 -07:00
spikecodes
982f57efd9
Fix user profiles showing up in search engines 2021-09-06 12:05:03 -07:00
spikecodes
41b3dc5739
More apt error messages for Reddit outages 2021-08-11 20:49:42 -07:00
spikecodes
45a5778571
Escape text-only flairs 2021-07-19 10:20:00 -07:00
accountForIssues
be253d40dd
Escape html characters in post flairs (#247)
* Encode HTML characters in flairs

* Encode HTML characters in flairs

* Use esc! macro for HTML escaping

Co-authored-by: spikecodes <19519553+spikecodes@users.noreply.github.com>
2021-07-19 17:15:15 +00:00
spikecodes
345f8e7b80
Dampen title color of visited posts. Fixes #222 2021-07-18 14:53:08 -07:00
spikecodes
a190890239
Fix Regex matching of Reddit links 2021-07-17 22:24:28 -07:00
spikecodes
56998b8332
Rewrite redd.it links 2021-06-21 22:51:50 -07:00
spikecodes
d2002c9027
Disable dysfunctional moderator list feature 2021-06-11 11:03:36 -07:00
spikecodes
d27bd782ce
Specify fallback fonts 2021-05-26 20:30:08 -07:00
spikecodes
4defb58f2a
Optimizations and commenting 2021-05-20 12:24:06 -07:00
spikecodes
ba42fc066f
Fix two subscription bugs 2021-05-19 20:30:10 -07:00
spikecodes
b9af6f47f3
Use Inter font 2021-05-19 16:09:08 -07:00
spikecodes
73732a2a44
Fix subscription clearing when saving settings 2021-05-19 15:59:32 -07:00
spikecodes
43ed9756dc
Upgrade to v0.14 2021-05-16 09:11:38 -07:00
curlpipe
8bb247af3b
Added support for quarantined subreddits (#219)
* Added support for quarantined subreddits

* Added confirmation wall for quarantined subreddits

* Added quarantine walls to other routes and fixed case issue

* Correct obsolete use of cookie()

* Refactor param() and quarantine()

Co-authored-by: Spike <19519553+spikecodes@users.noreply.github.com>
2021-05-16 15:53:39 +00:00
spikecodes
4f09333cd7
Handle three unwraps 2021-05-15 14:51:57 -07:00
spikecodes
e4f9bd7b8d
Configure default settings using environment variables 2021-05-15 13:59:42 -07:00
Adrian Lebioda
928907086c
HLS video playback (#182)
* HLS video playback

Signed-off-by: Adrian Lebioda <adrianlebioda@gmail.com>

* Add LibreJS compliance

* Locally host hls.js

* Notification about HLS under videos that support it

Signed-off-by: Adrian Lebioda <adrianlebioda@gmail.com>

* Use .contains() instead of .find() == None

* Make list of preferences constant

* Change headers_keys from Vector into Array

* Fix incorrect detecting of # in paths

* Remove trailing-slash-appending if statement

* Change HLS notification styling

Co-authored-by: spikecodes <19519553+spikecodes@users.noreply.github.com>
2021-05-10 01:25:52 +00:00
curlpipe
536a766960
WIP: Various subreddit & post fixes (#215)
* Fixed random subreddit issue

* Fixed large subreddit icon rendering

* Formatting fix

* Fix dodgy HTML rendering issues

* Revert "Fix dodgy HTML rendering issues"

This reverts commit 58be5f449b72f271d2b3c046870b652d1e715289.
2021-05-09 15:40:49 +00:00
spikecodes
e34329cfee
Upgrade to v0.11.1 2021-05-08 22:09:47 -07:00
imabritishcow
97a0680bd0
Support GIFs in comments (#217)
* Support GIFs in comments

* Fix removing Giphy links so it only removes Giphy links

* Remove removing link to Giphy
2021-05-09 01:22:26 +00:00
spikecodes
c1560f4eba
Upgrade to v0.11.0 2021-05-06 12:31:59 -07:00
curlpipe
242ffab0da
Fix bug with subreddit subscription case & RTL languages (#214)
* Fixed subreddit subscription case issues

* Fixed formatting

* Fixed flair RTL language issue (#132)

* Convert display_lookup to Vec

Co-authored-by: spikecodes <19519553+spikecodes@users.noreply.github.com>
2021-05-06 19:11:25 +00:00
curlpipe
1211d781d0
Add list of moderators to sidebar (#213)
* Added list of moderators to sidebar & added wiki not found message

* Improved code formatting
2021-05-04 17:30:54 +00:00
spikecodes
3cf787cf98
Fix #195 2021-04-14 21:53:17 -07:00
spikecodes
a18db1e2b7
Properly pass preview queries to media proxy 2021-04-08 22:26:03 -07:00
spikecodes
b3e4b7bfae
Add user following functionality 2021-04-06 10:23:05 -07:00
spikecodes
f0f484288e
Fix server.rs function name 2021-03-31 13:03:44 -07:00
spikecodes
c7f9386c01
Fix #169 2021-03-27 13:03:13 -07:00
spikecodes
66ac72beab
Fix clippy errors 2021-03-26 20:00:47 -07:00
spikecodes
6a7f725c12
Default subreddit post sorting. Closes #166 2021-03-25 21:41:58 -07:00
spikecodes
772d20615b
Sidebar about page. Closes #162 2021-03-21 19:28:05 -07:00
spikecodes
0bb1677520
Revert client to HTTP/1.1 2021-03-21 13:56:05 -07:00
spikecodes
da4883db29
Upgrade client to HTTP/2 2021-03-21 11:37:03 -07:00
spikecodes
4c66e75f6b
Add HSTS command line flag 2021-03-20 22:10:31 -07:00
spikecodes
966e0ce921
Expand truncated numbers on mouseover. Close #156 2021-03-20 15:42:47 -07:00
spikecodes
dc7e087ed0
Truncate negative scores 2021-03-19 22:04:44 -07:00
spikecodes
9b5176f7b9
Sub icons and truncated subscribers in search results 2021-03-18 21:32:54 -07:00
spikecodes
467342edf4
Patch broken homepage sorting 2021-03-18 08:51:31 -07:00
spikecodes
a81502dde1
Fix wiki routing 2021-03-17 21:40:55 -07:00
spikecodes
0ce2d9054e
Handle non-ASCII post headers 2021-03-17 21:26:06 -07:00
spikecodes
07363e47a9
Request building error handler 2021-03-17 16:53:49 -07:00
spikecodes
fb7faf6477
Handle HeaderValue and Uri parsing errors 2021-03-17 16:32:28 -07:00
spikecodes
b14b4ff551
Rewrite server and client using Hyper 2021-03-17 15:30:33 -07:00
spikecodes
f209757ed6
Handle proxy unwraps 2021-03-12 12:21:02 -08:00
spikecodes
4173362ce1
Fix #148 2021-03-11 20:15:26 -08:00
spikecodes
b2ae5e486f
Rename subreddit::page to subreddit::community 2021-03-10 21:43:06 -08:00
spikecodes
118ff9485c
Document proxy.rs 2021-03-10 19:02:03 -08:00
spikecodes
2e89a85858
Handle alternative status codes 2021-03-09 22:23:26 -08:00
spikecodes
e59b2b1346
Custom HTTP client with Rustls 2021-03-09 22:13:46 -08:00
spikecodes
1c36549134
Fix #146 2021-03-09 07:22:17 -08:00
spikecodes
5fb88d4744
Allow certain clippy lints 2021-03-08 19:22:10 -08:00
spikecodes
bf783c2f3a
Optimize type casting 2021-03-08 18:49:06 -08:00
spikecodes
10873dd0c6
Fix #144 2021-03-05 06:24:40 -08:00
spikecodes
20f6945160
Fix #140 2021-02-27 13:34:02 -08:00
spikecodes
10c73fad7f
Switch favicon to ico 2021-02-26 12:04:11 -08:00
spikecodes
1de01d7283
Log errors to io::stderr 2021-02-25 16:21:56 -08:00
spikecodes
9183ce1921
Handle links in Media::parse 2021-02-25 11:43:58 -08:00
spikecodes
a197df89ff
Turn off media logging 2021-02-25 11:30:15 -08:00
spikecodes
be2a1d876b
Fix url rewrites 2021-02-25 11:01:25 -08:00
spikecodes
5d643277bc
Geometric logo 2021-02-25 09:07:45 -08:00
spikecodes
a3ec44149c
Categorize utilities 2021-02-24 21:29:23 -08:00
spikecodes
5cd5b553b0
Handle suspended users 2021-02-24 11:26:23 -08:00
spikecodes
47d01a0dca
Fix logging 2021-02-24 11:00:04 -08:00
spikecodes
4a06882dc8
Simplify routes in main.rs 2021-02-24 09:26:01 -08:00
spikecodes
8034594006
Better subreddit error messages. Closes #131 2021-02-22 16:43:32 -08:00
spikecodes
518d5753a7
Handle about pages 2021-02-21 10:13:20 -08:00
spikecodes
dd67b52199
Fix #126 2021-02-20 18:36:30 -08:00
spikecodes
9cfab348eb
Filter by flair. Closes #124 2021-02-20 13:59:16 -08:00
spikecodes
a606e48435
Handle 4 more unwraps 2021-02-20 12:14:32 -08:00
spikecodes
2091f26bda
Fix media previews 2021-02-19 21:49:02 -08:00
spikecodes
b3341b49c0
Individually proxy subreddit and user icons 2021-02-19 21:46:44 -08:00
spikecodes
65e4ceff7b
Individually proxy previews 2021-02-19 20:50:55 -08:00
spikecodes
902c9a6e42
Individually proxy custom emojis 2021-02-19 18:18:09 -08:00
spikecodes
c586de66ba
Individually proxy images and thumbnails 2021-02-19 12:55:07 -08:00
spikecodes
8560e8a37a
Add "port" command line argument 2021-02-18 11:49:50 -08:00
spikecodes
3652342f46
Use clap for arg parsing 2021-02-18 11:40:10 -08:00
spikecodes
58127b17d8
Individually proxy videos 2021-02-18 10:04:59 -08:00
spikecodes
14ecf3cf60
Edit indicator 2021-02-14 14:53:09 -08:00
spikecodes
aa7c8c85df
Templatize redirects 2021-02-13 15:02:38 -08:00
robrobinbin
93cfc713c6
Generate URL to restore settings, including subscriptions. Closes #89 (#116)
* Start recursive comments

* Update comment.html

* Fix move error

* Comment improvements

* Fix merge

* Remove extra endif from post.html

* Fix post.html

* Restore setting from link

* Tweak settings page

Co-authored-by: spikecodes <19519553+spikecodes@users.noreply.github.com>
2021-02-13 20:55:23 +00:00
spikecodes
f06320a4ae
Subscribe to multireddit button. Closes #104 2021-02-12 20:47:54 -08:00
robrobinbin
809be42e01
Add "View all comments" and "Show parent comments" buttons when viewing a single thread. Closes #65 (#115)
* Start recursive comments

* Update comment.html

* Fix move error

* Comment improvements

* Fix merge

* Remove extra endif from post.html

* Fix post.html

Co-authored-by: spikecodes <19519553+spikecodes@users.noreply.github.com>
2021-02-12 09:16:59 -08:00
robrobinbin
4a40e16277
Fix comment structuring (#113)
* Start recursive comments

* Update comment.html

* Fix move error

Co-authored-by: spikecodes <19519553+spikecodes@users.noreply.github.com>
2021-02-10 10:48:51 -08:00
spikecodes
fee2cb1b56
Split subscription names by + 2021-02-09 21:56:38 -08:00
spikecodes
8785bc95f5
Fix extra slashes in post bodies 2021-02-09 21:54:55 -08:00
spikecodes
6feb347c27
Fix post ID parsing 2021-02-09 12:08:38 -08:00
spikecodes
e731cfbac4
Support post links without titles 2021-02-09 10:11:39 -08:00
spikecodes
008924fff8
Fix listen address 2021-02-09 09:54:13 -08:00
Spike
ebbdd7185f
Move from Actix Web to Tide (#99)
* Initial commit

* Port posts

* Pinpoint Tide Bug

* Revert testing

* Add basic sub support

* Unwrap nested routes

* Front page & sync templates

* Port remaining functions

* Log request errors

* Clean main and settings

* Handle /w/ requests

* Create template() util

* Reduce caching time to 30s

* Fix subscription redirects

* Handle frontpage sorting
2021-02-09 17:38:52 +00:00
spikecodes
402b3149e1
Fix 'no entry found for key' error 2021-02-07 17:56:06 -08:00
spikecodes
ac5ef89dff
Fix gallery unwrapping 2021-02-07 17:33:54 -08:00
robrobinbin
7edca18f8d
Inline videos/gifs for card view (#107)
* Basic gallery support

* Inline videos for card view
2021-02-08 00:22:14 +00:00
robrobinbin
cf45d53fdd
Basic gallery support (#103) 2021-02-06 20:05:11 +00:00
spikecodes
90d3063f93
Fix #96 2021-02-03 21:42:43 -08:00
Matthew Crossman
9824370771
Fix feed sorting to be case-insensitive. 2021-02-03 10:53:09 +11:00
Spike
8a27b2bac8
Support /w/ for Wikis 2021-02-02 08:59:50 -08:00
JPyke3
0a140a6ffc
Merge branch 'master' of github.com:JPyke3/libreddit into master 2021-02-01 11:13:36 +01:00
JPyke3
e837d84105
Add Support for iOS "Add to Homescreen"
* Adds basic Manifest.json
 * Adds Meta Tags for iOS
 * Adds Meta Tags for Android
 * Adds Logo for Manifest.json
 * Adds iOS Logo for homescreen
2021-02-01 11:10:53 +01:00
spikecodes
effaeb7508
Fix debug logging error 2021-01-31 19:08:50 -08:00
spikecodes
ee0da63862
Update version and screenshot 2021-01-31 18:50:31 -08:00
spikecodes
971f14bb55
Fix #66 2021-01-31 14:10:13 -08:00
spikecodes
bfcc4c985d
Fix subreddit sorting and media 2021-01-30 21:46:35 -08:00
spikecodes
1653d4fb4c
Hide NSFW content by default 2021-01-30 21:43:46 -08:00
spikecodes
269bb0bfb6
Convert subscription requests to POST 2021-01-30 21:21:46 -08:00
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