Commit Graph

51 Commits

Author SHA1 Message Date
Matthew E
f6bb53e388
Mark search query as safe in askama template (#686) 2023-01-03 20:55:17 -08:00
gmnsii
ab30b8bbec
Bugfix: 'all posts are hidden because NSFW' when no posts where found (#666)
* Fix 'all_posts_hidden_nsfw' when there are no posts.

If a search query yielded no results and the user set nsfw posts to be
hidden, libreddit would show 'All posts are hidden because they are NSFW.
Enable "Show NSFW posts" in settings to view'. This is fixed by
verifying tnat posts.len > 0 before setting 'all_posts_hidden_nsfw' to
true.

* Add a message when no posts were found.

* Delete 2
2022-12-31 19:11:59 -07:00
Daniel Valentine
e579b97442
List post duplicates (resolves #574). 2022-12-03 01:08:36 -07:00
Daniel Valentine
465d9b7ba7
Implement 'posts hidden because of NSFW'. (Resolves #159) (#619) 2022-11-07 20:54:49 -07:00
spikecodes
d558127306
Add keyboard shortcuts to nav buttons (closes #466) 2022-05-20 23:10:11 -07:00
Nick Lowery
322aa97a18
Fix HTML encoding in templating (#404) 2022-05-21 05:28:31 +00: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
spikecodes
8e332b0630
Show full subreddit results in search 2021-11-23 22:24:23 -08:00
spikecodes
52a1b45014
Lazy load images 2021-09-06 12:02:52 -07:00
spikecodes
85deb4947d
Support HLS playback in search and user feeds 2021-06-11 17:38:43 -07:00
spikecodes
966e0ce921
Expand truncated numbers on mouseover. Close #156 2021-03-20 15:42:47 -07:00
spikecodes
9b5176f7b9
Sub icons and truncated subscribers in search results 2021-03-18 21:32:54 -07:00
robin
653b0e7024 Don't use display contents and remove duplication 2021-02-03 20:11:04 +01:00
robrobinbin
ffbb1cf7cd
Update search.html 2021-02-02 21:20:38 +01:00
robrobinbin
9df1dfae32
Update search.html 2021-02-01 20:58:59 +01:00
robrobinbin
7d8faefad0
Update search.html 2021-02-01 20:26:35 +01:00
spikecodes
1653d4fb4c
Hide NSFW content by default 2021-01-30 21:43:46 -08:00
Matthew Crossman
8cc01c58f3
Move the subs list into the navbar. 2021-01-31 09:52:18 +11:00
Matthew Crossman
dc2030e6f3
Vertical list subscriptions. 2021-01-30 21:21:54 +11:00
Matthew Crossman
ef5a1cd66e
Rename block sub_list > subscriptions 2021-01-30 19:47:30 +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
robin
baf7272cfd Absolutly no jumping when images (fail to) load 2021-01-21 22:04:06 +01:00
spikecodes
7360503234 Make posts single-color 2021-01-18 21:32:25 -08:00
spikecodes
dd60cb5b2b SVG arrow 2021-01-17 15:51:03 -08:00
Robin
d45ee03122 Resolve merge conflicts 2021-01-17 23:54:48 +01:00
Robin
162e00b243 Improve accessibility rating 2021-01-17 23:49:36 +01: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
ef9bc791e1 Fix inline style tags 2021-01-16 19:21:47 -08:00
spikecodes
a0bc1732cf Moderator and admin distinguishers 2021-01-16 15:02:24 -08:00
spikecodes
fdf60e7255 Separate datetime into relative and absolute 2021-01-16 11:40:32 -08:00
robrobinbin
45660816ce Add cardview to search results too 2021-01-14 21:53:07 +01:00
robrobinbin
d19e73f059 Add placeholder for posts without thumbnail 2021-01-14 21:45:43 +01:00
robrobinbin
a85a4278f6 Add subreddits to search results 2021-01-14 19:22:50 +01:00
robrobinbin
a4d77926b6 Rich flairs 2021-01-12 23:34:16 +01:00
robrobinbin
bbe7024323 Start richtext flairs 2021-01-12 22:43:03 +01:00
somoso
65f1a2afb2 Stop label from being long for joined subreddits
Browsing with a long joined subreddit list will cause the label to look a bit weird.

Example: https://libredd.it/r/Android+AnimalsBeingBros+AnimalsBeingDerps+AnimalsBeingJerks+AppleWatch+CatSlaps+CatSmiles+CatsBeingAdorable+FreeTube+Games+Ijustwatched+IllegallySmol+IllegallySmolCats+IpodClassic+LearnRubyonRails+Megadrive+MovieDetails+Music+NetflixBestOf+NintendoSwitch+Possums+Teefers+UKPersonalFinance+airplaneears+apple+aww+brushybrushy+cats+catswhotrill+curledfeetsies+cyberpunkgame+dataisbeautiful+dechonkers+digital_ocean+dogs+dogsareliquid+dogswithjobs+emulation+greebles+happycowgifs+hardware+iOSDevelopment+iOSProgramming+iosdev+kittykankles+learnruby+likeus+mac+mashups+microsoft+movies+netflix+netsec+pihole+playstation+programming+rarepuppers+raspberry_pi+redditsync+rubyonrails+satelliteears+shittymoviedetails+spookyteefies+technology+teefies+vampirecats+velvethippos

That will cause the label to be excessively long
2021-01-12 15:47:39 +00:00
spikecodes
08683fa5a6 Light theme 2021-01-10 18:15:34 -08:00
spikecodes
f445c42f55 Wide UI Mode 2021-01-10 13:08:36 -08:00
spikecodes
b13874d0db Add "hide nsfw" option 2021-01-08 17:35:04 -08:00
spikecodes
3444989f9a Default Comment Sort Setting 2021-01-07 08:38:05 -08:00
spikecodes
da5c4603d9 Switch from chrono to time-rs 2021-01-05 20:01:21 -08:00
spikecodes
aa7b4b2af7 Settings with Layouts 2021-01-05 18:04:49 -08:00
spikecodes
9c1a932214 Clean Up Post Headers 2021-01-04 21:17:19 -08:00
spikecodes
df89c5076e Compact Libreddit Posts on Mobile 2021-01-04 19:26:41 -08:00
spikecodes
a422a74747 Make Design More Compact 2021-01-03 19:44:44 -08:00
spikecodes
0dd114c166 Post upvote ratio, permalink and reddit link 2021-01-03 13:06:49 -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
2d77a91150 Refactor Page Titles and Add Subreddit/User Titles 2020-12-31 20:21:56 -08:00