Commit Graph

107 Commits

Author SHA1 Message Date
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 85ae7c1f60
Fix indentation and formatting 2021-11-23 22:23:29 -08: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 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 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 b9af6f47f3
Use Inter font 2021-05-19 16:09:08 -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
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
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 66ac72beab
Fix clippy errors 2021-03-26 20:00:47 -07:00
spikecodes 772d20615b
Sidebar about page. Closes #162 2021-03-21 19:28:05 -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 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 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 b2ae5e486f
Rename subreddit::page to subreddit::community 2021-03-10 21:43:06 -08:00
spikecodes e59b2b1346
Custom HTTP client with Rustls 2021-03-09 22:13:46 -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 5d643277bc
Geometric logo 2021-02-25 09:07:45 -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 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 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 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
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
spikecodes 6feb347c27
Fix post ID parsing 2021-02-09 12:08:38 -08:00