Commit Graph

838 Commits

Author SHA1 Message Date
spikecodes
7c73e352ce
Fix [deleted] user link color 2021-12-19 17:12:33 -08:00
mikupls
341c623be8
Refactor Media parsing (#334)
* Parse video data from cross_post_parent_list as vanilla Reddit does.

introduce testdata directory for testing JSON parsing functions.

refactor Media::parse for slightly more readability.

Add various test cases.

* Trim down to just refactoring

Co-authored-by: Spike <19519553+spikecodes@users.noreply.github.com>
2021-12-20 01:07:20 +00:00
Spike
4c8b724a9d
Merge pull request #367 from alyaeanyx/no-href-to-deleted-user
Don't create hrefs to u/[deleted]
2021-12-19 16:58:04 -08:00
Spike
227d74b187
Add totaldarkness.net instance. Closes #366 2021-12-20 00:50:20 +00:00
alyaeanyx
f05a818edd
Don't create hrefs to u/[deleted] 2021-12-19 12:20:37 +01:00
Spike
ceee13cfb7
docs: add the missing AUTOPLAY_VIDEOS in README
Merge pull request #361 from xatier/patch-2
2021-12-14 22:03:43 -08:00
xatier
a39495b3cb
Update README.md
This config was introduced in 1d4ea50a45 , but missed from the documentation.
2021-12-12 14:41:00 -08:00
Spike
38cfe4ad71
Add libreddit.hu instsance. Closes #357 2021-12-08 23:13:09 +00:00
Spike
0b89539c2b
Add lr.cowfee.moe instance. Closes #353 2021-12-01 03:44:44 +00:00
Spike
046b8b3edc
Add new onion instance. Closes #349 2021-12-01 03:42:54 +00:00
spikecodes
0656756d21
Fix #196 2021-11-29 22:29:41 -08:00
Spike
43551f70fd
Add leddit onion instance 2021-11-30 04:09:41 +00:00
spikecodes
364c29c4d5
Use resized icons for awards. Fixes #346 2021-11-28 14:47:50 -08:00
spikecodes
e6c978a2f7
Update to v0.20 2021-11-27 20:34:43 -08:00
Nick Lowery
91cc140091
Set sub and user descriptions to overflow-wrap: anywhere (#345) 2021-11-28 02:49:41 +00:00
spikecodes
6f29d94337
List Liberapay as donation method 2021-11-27 15:07:44 -08:00
Spike
67e26479ae
Add leddit.xyz instance. Closes #344 2021-11-27 22:57:56 +00:00
Spike
1a1dee36b8
Update FUNDING.yml 2021-11-27 22:55:27 +00:00
Spike
b63000a93f
Create FUNDING.yml 2021-11-27 22:27:47 +00:00
Spike
401ee2ee41
Create FUNDING.yml 2021-11-27 22:27:39 +00:00
Spike
99a83ea11b
Add northboot.xyz instance 2021-11-27 19:13:15 +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
Spike
beada1f2b2
Update privacy policy 2021-11-25 05:38:09 +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
e181e3f57d Improve Replit deployment method 2021-11-22 13:01:34 -08:00
spikecodes
79bb913fa6 Condense free hosting options into one deployment method 2021-11-22 13:00:39 -08:00
Spike
632b64c98b
Add Glitch deployment option. Closes #339 2021-11-22 20:50:12 +00:00
spikecodes
2878d9c799
Shrink and widen comment scores to fit better 2021-11-22 12:19:51 -08:00
spikecodes
9f8d36cb00
Prevent post previews from overflowing on Chromium 2021-11-22 08:40:36 -08:00
spikecodes
25e641e7b3
Don't run GitHub Workflow when README.md changes 2021-11-21 22:46:01 -08:00
spikecodes
4faa9d46d6
Fix HTTPS connector 2021-11-21 22:44:05 -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
Spike
2ef7957a66
Create feature parity issue template 2021-11-21 19:48:48 +00:00
Spike
7df8e7b4c6
Tweak feature request template 2021-11-21 19:27:33 +00:00
Spike
67d3be06e1
Fix Jamie's instance address 2021-11-21 04:17:06 +00:00
Spike
6be5eb8991
Update README.md 2021-11-21 04:15:35 +00:00
mikupls
5d9c320a7e
Format post and comment votes with a decimal place, like vanilla reddit does. (#324)
* Format post and comment votes with a decimal place, like vanilla reddit does.

Before this change, a vote count of 1999 was displayed as 1k, which is a pretty big gap. The displayed count also differed from what Reddit does. Now, the behaviour is consistent.

Added some tests for format_num.

* Provide more space for post scores

Co-authored-by: spikecodes <19519553+spikecodes@users.noreply.github.com>
2021-11-21 04:07:45 +00:00
Ruben Elshof
f7de5285e4
Hide post preview in compact mode. (#329) 2021-11-21 02:05:37 +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
Spike
3a9e6b4ca0
Add mutahar.rocks instance 2021-11-20 17:29:27 +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
spikecodes
34ea679519
Update crates and optimize parameters 2021-11-14 18:51:36 -08: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