Commit Graph

86 Commits

Author SHA1 Message Date
3dee29f3ef Add scrolling to highlighted comment (fix ) 2024-01-02 19:43:00 -05:00
b0f985c687 Libreddit -> Redlib 2023-12-26 18:25:52 -05:00
38ee0d9428 make comment search bar color change based on theme 2023-05-31 19:41:13 +02:00
1e418619f1 Feat: search for comments within posts
Add the ability to search for specific comments within posts.
Known issues:
  - Just like on reddit, this does not work with comment sorting. The
    sorting order is ignored during the search and changing the sorting
    order after the search does not change anything. I do not think we
    can fix this before reddit does, since in my understanding we rely
    on them for the sorting. However we could implement a default
    sorting method ourselves by taking the vector of comments returned
    from the search and sorting it manually.
  - The UI could be improved on mobile. On screens with a max width
    inferior to 480 pixels, the comment search bar is displayed below
    the comment sorting form. It would be great if we could make the
    search bar have the same width as the whole comment sorting form
    but I do not have the willpower to write any more css.
2023-03-24 17:41:26 -07:00
3d0287f04f Add comment count in post ()
* Add comment count in post

* Restyle comment count
2023-01-16 12:05:53 -08:00
e579b97442 List post duplicates (resolves ). 2022-12-03 01:08:36 -07:00
e62d33ccae Blur NSFW posts.
Reimplementation of .

Co-authored by: Daniel Valentine <Daniel-Valentine@users.noreply.github.com>
2022-11-08 09:01:12 -07:00
8348e20724 Use permalink offered by Reddit (fixes ). () 2022-11-03 21:08:36 -07:00
50665bbeb3 Switch titles to <h1>s (Fixes ) 2022-05-21 15:47:58 -07:00
322aa97a18 Fix HTML encoding in templating () 2022-05-21 05:28:31 +00:00
91bff826f0 Fix and improve admin/mod distinguishers ()
* 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
6b59976fcf Fix 2021-12-27 23:16:01 -08:00
bd413060c6 Support displaying awards ()
* 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
923ff776bd Fix HLS + autoplay from breaking videos 2021-11-22 18:07:00 -08:00
0f7ba3c61d Add "open in reddit" button to all pages ()
* 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
1d4ea50a45 Add setting to autoplay videos 2021-10-25 21:27:55 -07:00
52a1b45014 Lazy load images 2021-09-06 12:02:52 -07:00
83a667347d Add rel="nofollow" to hardcoded outbound links 2021-05-10 10:31:19 -07:00
928907086c HLS video playback ()
* 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
966e0ce921 Expand truncated numbers on mouseover. Close 2021-03-20 15:42:47 -07:00
038fafa378 Remove unnecessary trailing slashes 2021-03-17 17:28:05 -07:00
cda19a1912 Remove duplicate "description" meta tag for posts 2021-03-10 21:41:39 -08:00
80fb3a5c18 Fix 2021-02-21 20:28:04 -08:00
de38f7ef18 Fix post flairs 2021-02-21 10:11:17 -08:00
9cfab348eb Filter by flair. Closes 2021-02-20 13:59:16 -08:00
38230ed473 Add more rich meta tags () 2021-02-16 19:16:32 +00:00
809be42e01 Add "View all comments" and "Show parent comments" buttons when viewing a single thread. Closes ()
* 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
4a40e16277 Fix comment structuring ()
* 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
7edca18f8d Inline videos/gifs for card view ()
* Basic gallery support

* Inline videos for card view
2021-02-08 00:22:14 +00:00
cf45d53fdd Basic gallery support () 2021-02-06 20:05:11 +00:00
653b0e7024 Don't use display contents and remove duplication 2021-02-03 20:11:04 +01:00
cbf1f540d6 Update post.html 2021-02-02 21:20:03 +01:00
ba9b5afd4e Update post.html 2021-02-01 20:25:57 +01:00
8cc01c58f3 Move the subs list into the navbar. 2021-01-31 09:52:18 +11:00
dc2030e6f3 Vertical list subscriptions. 2021-01-30 21:21:54 +11:00
ef5a1cd66e Rename block sub_list > subscriptions 2021-01-30 19:47:30 +11:00
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
f55ea5a353 Specify default headers for security 2021-01-28 21:53:10 -08:00
30c33d91e1 Specify video MIME in posts 2021-01-28 20:06:35 -08:00
baf7272cfd Absolutly no jumping when images (fail to) load 2021-01-21 22:04:06 +01:00
7360503234 Make posts single-color 2021-01-18 21:32:25 -08:00
dd60cb5b2b SVG arrow 2021-01-17 15:51:03 -08:00
d45ee03122 Resolve merge conflicts 2021-01-17 23:54:48 +01:00
162e00b243 Improve accessibility rating 2021-01-17 23:49:36 +01:00
138f8320e9 Create media struct 2021-01-17 12:58:12 -08:00
090ca1a140 Add comment counter and other post improvements 2021-01-17 20:39:57 +01:00
ef9bc791e1 Fix inline style tags 2021-01-16 19:21:47 -08:00
a0bc1732cf Moderator and admin distinguishers 2021-01-16 15:02:24 -08:00
fdf60e7255 Separate datetime into relative and absolute 2021-01-16 11:40:32 -08:00
998b301229 Improve support for text-only browsers 2021-01-16 11:00:15 +01:00