Commit Graph

217 Commits

Author SHA1 Message Date
Matt 8906b66cb3
(#23) Implement FERRIT_SFW_ONLY (#24) 2022-10-21 18:21:20 -06:00
Daniel Valentine d632fea6a7 Replace Reddit mobile SVG with something slightly better. 2022-10-15 00:46:50 -06:00
Daniel Valentine 660c7e600a Merge branch 'master' of github.com:ferritreader/ferrit 2022-10-12 18:44:17 -06:00
Daniel Valentine dee73dfa33 Rename GitHub organization to ferritreader. 2022-10-12 17:02:22 -06:00
Daniel Valentine 7099e7ab33
(#28) minimalize post footer content on mobile (#35) 2022-10-12 16:58:24 -06:00
Daniel Valentine be3a4013db Rename project to Ferrit. 2022-10-09 14:39:27 -06:00
Daniel Valentine a19f46ad18
(#13) implement landing page for NSFW content (#25) 2022-10-07 08:40:07 -06:00
Daniel Valentine e60b913452
(spikecodes/libreddit#574) list post duplicates (#22)
(spikecodes/libreddit#574) list post duplicates
2022-10-05 11:14:27 -06:00
Daniel Valentine 9ba47f458f
use permalink offered by Reddit (#19) 2022-09-28 23:41:47 -06:00
Daniel Valentine 8ea797f880
Blur NSFW posts libreddit/spikecodes#482
Originally authored by NKIPSC <15067635+NKIPSC@users.noreply.github.com>
2022-09-26 19:35:23 -06:00
Daniel Valentine 03a87fcd23 fix incorrect colorization of logo 2022-09-24 21:56:28 -06:00
Matt 238ef73ed4
Implement 'posts hidden because of NSFW' #508 (#9)
Co-authored-by: Matthew Esposito <matt@matthew.science>
2022-09-24 20:14:01 -06:00
Daniel Valentine a9d5993b20 remove all reddit branding (#1) 2022-09-20 22:48:00 -06:00
spikecodes 50665bbeb3
Switch titles to <h1>s (Fixes #444) 2022-05-21 15:47:58 -07:00
spikecodes d558127306
Add keyboard shortcuts to nav buttons (closes #466) 2022-05-20 23:10:11 -07:00
spikecodes 7f5bfc04b3
Always show Feeds dropdown (Fixes #408) 2022-05-20 22:42:05 -07:00
Nick Lowery 322aa97a18
Fix HTML encoding in templating (#404) 2022-05-21 05:28:31 +00:00
mikupls 60c7b6b23f
Embed css themes to simplify adding and testing new themes (#489) 2022-05-21 01:41:31 +00:00
Nick Lowery c3dade257d
Restore post sorting preference by link (#406) 2022-05-17 03:11:01 +00:00
spikecodes 9eb42932df
Hide empty sidebar 2022-03-24 21:19:21 -07: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
674Y3r 91bff826f0
Fix and improve admin/mod distinguishers (#386)
* Fix regression with comments from deleted mods

Starting with https://github.com/spikecodes/libreddit/pull/367/files
comments from deleted moderators and admins(?) aren't highlighted.

* Highlight mod and admin usernames in posts

Works like on reddit + shows highlight for mods on the search page.
2022-01-09 02:50:53 +00: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 6b59976fcf
Fix #376 2021-12-27 23:16:01 -08:00
spikecodes 3188f9d8e7
Tweak settings page design 2021-12-27 13:43:44 -08:00
spikecodes 7aeabfc4bc
Rewrite Reddit post links to Libreddit equivalents 2021-12-26 21:18:20 -08:00
spikecodes 7c73e352ce
Fix [deleted] user link color 2021-12-19 17:12:33 -08:00
alyaeanyx f05a818edd
Don't create hrefs to u/[deleted] 2021-12-19 12:20:37 +01: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
obscurity 3054b9f4a0
Add rosebox theme (#237) 2021-11-24 19:31:19 +00:00
spikecodes 1cccef12a4
Add settings helper for HLS toggle 2021-11-23 22:43:25 -08: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 6d73024183 Remove obselete HTML comment 2021-11-22 18:16:06 -08:00
spikecodes 923ff776bd
Fix HLS + autoplay from breaking videos 2021-11-22 18:07:00 -08:00
spikecodes 7220190811 Link subscriptions in settings to their respective feeds 2021-11-21 22:30:44 -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 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
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
spikecodes 1d4ea50a45
Add setting to autoplay videos 2021-10-25 21:27:55 -07:00
mikupls 546c8a4cda
Add poster attribute and disable autoplay on GIFs
* Add the poster attribute even if a post claims to be type gif. Default to none-preloading for gifs like video-typed posts do.

* Disable autoplay for videos in feeds

Co-authored-by: Spike <19519553+spikecodes@users.noreply.github.com>
2021-10-23 21:25:51 +00:00
spikecodes 52a1b45014
Lazy load images 2021-09-06 12:02:52 -07:00
spikecodes 5c753ee171
Fix #251 2021-08-04 11:52:24 -07:00
spikecodes 85deb4947d
Support HLS playback in search and user feeds 2021-06-11 17:38:43 -07:00
spikecodes d2002c9027
Disable dysfunctional moderator list feature 2021-06-11 11:03:36 -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
Tsvetomir Bonev ed05f5a092
misc: fix HLS typo (#220) 2021-05-16 15:41:47 +00:00