Commit Graph

5016 Commits

Author SHA1 Message Date
netbrum
215b67095c
Merge a697bb92c5 into 44dda08b13 2024-09-30 21:31:17 -04:00
Nutomic
44dda08b13
Avoid stack overflow when fetching nested comments, reduce max comment depth to 50 (#5009)
* Avoid stack overflow when fetching deeply nested comments

* add test case

* reduce comment depth, add docs

* decrease

* reduce max comment depth to 50

* fmt

* clippy

* cleanup
2024-09-30 20:27:14 -04:00
Nutomic
5115ed4c09
Handle partial settings backup (fixes #4307) (#5063)
* Handle partial settings backup (fixes #4307)

* clippy
2024-09-30 20:21:06 -04:00
netbrum
a697bb92c5 Format code 2024-09-30 23:26:31 +02:00
netbrum
5245c738b5
Merge branch 'main' into replace-clippy-unwrap-unused 2024-09-30 21:23:03 +00:00
netbrum
986788ac3e Replace .expect() with .unwrap() 2024-09-30 23:00:11 +02:00
netbrum
23ac0c1b86 Add LemmyResult to sitemap tests 2024-09-30 21:59:57 +02:00
netbrum
0e594be1f0 Add LemmyResult to comment_report_view tests 2024-09-30 21:30:22 +02:00
netbrum
8badf68988 Add LemmyResult to post_report_view tests 2024-09-30 21:30:14 +02:00
netbrum
08fb271401 Add LemmyResult to private_message_report_view tests 2024-09-30 21:01:05 +02:00
netbrum
759a9dd9e1 Add LemmyResult to private_message_view tests 2024-09-30 20:40:00 +02:00
netbrum
4db39ec10d Add LemmyResult to registration_application_view tests 2024-09-30 20:33:56 +02:00
netbrum
d25988b111 Add LemmyResult to vote_view tests 2024-09-30 20:27:49 +02:00
netbrum
d2a33ebb46 Add LemmyResult to actor_language tests 2024-09-30 20:20:57 +02:00
netbrum
3c1295b57a Add LemmyResult to db_schema comment tests 2024-09-30 20:08:56 +02:00
netbrum
9178c51fa6 Add LemmyResult to post_aggregates tests 2024-09-30 19:58:23 +02:00
netbrum
8bfbdca660 Add LemmyResult to language tests 2024-09-30 19:51:31 +02:00
netbrum
459ea24760 Add LemmyResult to person_aggregates tests 2024-09-30 19:46:08 +02:00
netbrum
0f63324bf2 Add LemmyResult to community_aggregates tests 2024-09-30 19:38:36 +02:00
netbrum
c18e7f50f9 Add LemmyResult to moderator tests 2024-09-30 19:14:00 +02:00
netbrum
e93d4e123a Add LemmyResult to post_report tests 2024-09-30 19:04:02 +02:00
netbrum
0a005b69fb Add LemmyResult to comment_aggregates tests 2024-09-30 18:57:52 +02:00
netbrum
5fd2cbbbbc Add LemmyResult to federation_allowlist tests 2024-09-30 18:52:05 +02:00
netbrum
11c534f906 Add LemmyResult to activity tests 2024-09-30 16:28:58 +02:00
netbrum
db5b8c5f79 Add LemmyResult to private_message tests 2024-09-30 16:19:28 +02:00
netbrum
2c1a9a2879 Add LemmyResult to site_aggregates tests 2024-09-29 22:22:49 +02:00
netbrum
49ebd8fa3e Add LemmyResult to db_schema post tests 2024-09-29 21:48:52 +02:00
netbrum
87abf2b2bf Add LemmyResult to community_view tests 2024-09-29 21:34:44 +02:00
netbrum
d03d8691fa Remove clippy::unwrap_used from community tests 2024-09-29 21:24:40 +02:00
netbrum
d5e15f308a Propagate registration_applications errors 2024-09-29 21:14:15 +02:00
netbrum
156eebf5ab Add LemmyResult to claims tests 2024-09-29 20:44:01 +02:00
netbrum
53a46d0917 Add LemmyResult to request tests 2024-09-29 17:14:06 +02:00
netbrum
44593d9e52 Add LemmyResult to api_common utils tests 2024-09-29 17:07:10 +02:00
netbrum
cfc1110c91 Add LemmyResult to error tests 2024-09-29 15:49:29 +02:00
netbrum
88b15b7dd2 Add LemmyResult to rate_limiter tests 2024-09-29 15:49:29 +02:00
netbrum
02f19d00cc Add LemmyResult to markdown tests 2024-09-29 15:45:02 +02:00
netbrum
d4a09cfc6a Add LemmyResult to slurs tests 2024-09-29 15:44:52 +02:00
netbrum
664c51da8e Add LemmyResult to inboxes tests 2024-09-29 15:44:41 +02:00
netbrum
90db884f56 Add LemmyResult to session_middleware tests 2024-09-29 15:44:13 +02:00
Dessalines
f7d881ac78
Adding skip_serializing_none to another OAuth API request. (#5060) 2024-09-27 11:15:44 -04:00
Nutomic
e82f72d3c8
Avoid breaking changes, keep response fields as deprecated (#5058) 2024-09-27 09:23:19 -04:00
Joseph Silva
50ce7961d1
Apply scheduled post limit to future posts instead of past posts, and verify this in test (#5054)
* test scheduled_post_count

* fix syntax error

* fix formatting

* fix argument order

* fix user_scheduled_post_count function
2024-09-27 08:51:10 -04:00
SleeplessOne1917
33cbd95b7e
Add skip_serialize_none to OAuth structs with option fields (#5046)
* Add skip_serialize_none to OAuth structs with option fields

* PR feedback

* Remove serde and ts export from SSO db-only structs
2024-09-26 10:24:51 +02:00
Nutomic
f6a24e133a
Replace clippy allow annotation with expect (fixes #5012) (#5048) 2024-09-24 13:29:02 -04:00
Nutomic
61a02482ff
Cleanup remaining use of Result<bool, Error> (fixes #4862) (#5047) 2024-09-24 13:25:33 -04:00
Dessalines
0fab5bed24
Add ability to search for Community by its description (or title only). (#5044)
- This changes the post_title_only for Search to title_only, since its
  also used in the community query now.
- Fixes #4785
2024-09-24 13:24:28 -04:00
Dessalines
a65be776e3
Remove redundant local_user.auto_expand setting. (#5041)
- Fixes #4643

Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-09-24 08:55:09 -04:00
Nutomic
9eee61dd06
Post scheduling (fixes #234) (#5025)
* Post scheduling (fixes #234)

* clippy

* replace map_err with inspect_err

* ignore unpublished posts in read queries

* add api test

* fmt

* add some checks

* address some review comments

* allow updating schedule time

* rewrite scheduled task

* fmt

* machete

* compare date in sql, more filters

* check for community ban in sql

* remove api test (scheduled task only runs every 10 mins)

* remove mut

* add index

* remove Post::read impl

* fmt

* fix

* correctly handle changes to schedule time

* normal users can only schedule up to 10 posts
2024-09-24 05:39:40 -04:00
Nutomic
bab5c93062
Conditionally hide comments on nsfw posts (fixes #4237) (#5028)
* Conditionally hide comments on nsfw posts (fixes #4237)

* fix test
2024-09-24 10:33:53 +02:00
Dessalines
d476d32200
Removing a few more Result<bool> . (#4977)
* Removing a few more Result<bool> .

* Running taplo fmt.

* Running fmt.

* Adding email taken test.

* Fixing tests.

* Adding back in missing admin check.

* Rename check_has_local_followers function.
2024-09-23 20:55:35 -04:00