Commit Graph

243 Commits

Author SHA1 Message Date
13394b4a5e Add ability to hide subreddit panel (closes ) 2023-06-07 13:51:27 +03:00
38ee0d9428 make comment search bar color change based on theme 2023-05-31 19:41:13 +02:00
4a1b448abb Merge pull request from iTzBoboCz/polls 2023-04-17 18:12:02 -04:00
5f87875b8e Merge branch 'master' into bypass-gate 2023-04-15 10:56:28 -04:00
94a781c82c fix(polls): minor improvements 2023-04-01 14:31:39 +02:00
75af984154 fix(polls): apply suggestions and fix id parsing 2023-04-01 14:26:04 +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
a0726c5903 Change the bypass message and format code
The bypass message now indicates that the bypass is only temporary.
2023-03-23 11:09:33 -07:00
c1c867a5ff feat: add polls 2023-03-23 13:21:09 +01:00
e046144bf3 Allow bypassing nsfw gate for posts
On instances that are not sfw-only, the nsfw gate for posts can now be
bypassed.
2023-03-22 23:18:35 -07:00
af6722c053 Move unimportant links to footer () 2023-03-08 22:14:43 -07:00
01f9907aaf show the count of 'more replies'. ()
Co-authored-by: Daniel Valentine <daniel@vielle.ws>
Co-authored-by: Matthew Esposito <matt@matthew.science>
2023-03-08 21:30:41 -07:00
0b39d4f059 Mark search query as safe on Prev/Next button ()
Fixes:  again. Complement to .
2023-02-26 00:35:05 -07:00
5e03d701e4 Revert "Move unimportant links to footer"
This reverts commit e3df3a9470.
2023-02-19 18:03:55 +00:00
e3df3a9470 Move unimportant links to footer 2023-02-19 18:00:56 +00:00
f544daf8c0 Replace snoo with r/ icon 2023-02-09 21:40:51 -08:00
089315f9bb v0.29.1 (fixes ) 2023-02-09 22:25:42 -07:00
fa68bf561b added leaving reddit dialog () 2023-02-08 00:24:06 -07:00
8be5fdee2d Implement instance info endpoint (JSON, YAML, TXT) ()
Co-authored-by: Daniel Valentine <daniel@vielle.ws>
Co-authored-by: spikecodes <19519553+spikecodes@users.noreply.github.com>
2023-01-30 02:02:43 -07:00
7efa26e811 Fix 2023-01-21 00:35:49 -08:00
3d0287f04f Add comment count in post ()
* Add comment count in post

* Restyle comment count
2023-01-16 12:05:53 -08:00
eb9ef9f6d9 added leaving reddit dialog () 2023-01-12 01:46:56 -07:00
f6bb53e388 Mark search query as safe in askama template () 2023-01-03 20:55:17 -08:00
e9891236cd Remove unnecessary SFW-only disclosure in settings in SFW-only mode. 2023-01-03 11:20:55 -07:00
9a7b3b29f5 Merge remote-tracking branch 'origin/master' into hide_awards 2023-01-03 11:12:27 -07:00
c83a4e0cc8 Landing page for NSFW content, SFW-only mode ()
Co-authored-by: Matt <matt@matthew.science>
Co-authored-by: Spike <19519553+spikecodes@users.noreply.github.com>
2023-01-03 02:39:45 -07:00
6a785baa2c Add hide_awards config 2023-01-01 21:39:38 -05:00
a49d399f72 Link to libreddit/libreddit and open in new tab
This sets the target of the "code" link to `_blank`, so that it will
open in a new tab in browsers. Because the GitHub page is a different
context from libreddit, and accessing the repository doesn't imply that
the user is finished browsing libreddit, this seemed reasonable. This
also changes the link from `spikecodes/libreddit` to
`libreddit/libreddit`.
2023-01-01 13:43:33 -05:00
9178b50b73 fix a11y and HTML issues on settings page ()
- connect labels with corresponding form controls
- use fieldsets to group form sections
- don't nest details/summary element into label
2023-01-01 01:56:09 -07:00
ab30b8bbec Bugfix: 'all posts are hidden because NSFW' when no posts where found ()
* 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
37d1939dc0 Fix .
Dimensions for embedded video in post are explicitly set only when defined by Reddit.

c/o: NKIPSC <15067635+NKIPSC@users.noreply.github.com>
2022-12-13 21:15:28 -07:00
e579b97442 List post duplicates (resolves ). 2022-12-03 01:08:36 -07:00
618b074ad5 Fix embeds () 2022-11-27 11:42:34 -07:00
d86cebf975 Request CSS with explicit version.
base.html will now request with a query parameter `v=` whose value is
the current version of Libreddit. This will cause the browser to request
the stylesheet for a specific version of Libreddit, bypassing the cache.
A new version of Libreddit will cause the browser to fetch a new
stylesheet.

Resolves . Credit is due to GitHub user @chloekek for offering this
solution in the following post:
        https://github.com/libreddit/libreddit/issues/622#issuecomment-1315961742
2022-11-23 14:43:36 -07:00
fade305f90 Blur NSFW posts.
Reimplementation of .

Co-authored by: Daniel Valentine <Daniel-Valentine@users.noreply.github.com>
2022-11-09 08:49:39 -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
465d9b7ba7 Implement 'posts hidden because of NSFW'. (Resolves ) () 2022-11-07 20:54:49 -07:00
8348e20724 Use permalink offered by Reddit (fixes ). () 2022-11-03 21:08:36 -07:00
1a1ff2e600 Use singular form of "comment" for posts with 1 comment ()
* Use singular form of "comment" for posts with 1 comment

* Fix incorrect text on comment count tooltip

Co-authored-by: Spike <19519553+spikecodes@users.noreply.github.com>
2022-10-31 18:36:24 -07:00
50665bbeb3 Switch titles to <h1>s (Fixes ) 2022-05-21 15:47:58 -07:00
d558127306 Add keyboard shortcuts to nav buttons (closes ) 2022-05-20 23:10:11 -07:00
7f5bfc04b3 Always show Feeds dropdown (Fixes ) 2022-05-20 22:42:05 -07:00
322aa97a18 Fix HTML encoding in templating () 2022-05-21 05:28:31 +00:00
60c7b6b23f Embed css themes to simplify adding and testing new themes () 2022-05-21 01:41:31 +00:00
c3dade257d Restore post sorting preference by link () 2022-05-17 03:11:01 +00:00
9eb42932df Hide empty sidebar 2022-03-24 21:19:21 -07:00
f0a6bdc21b Fix sorting buttons on r/all and r/popular ()
* 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
70ff150ab4 Add user listing buttons ()
* 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
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
9c325c2cbf Search fixes ()
* Default to searching within subreddit

* Redirect to subreddit from search
2022-01-05 14:06:41 -08:00