719efb28bc
restore value of comment_like.post_id
2024-10-17 12:06:55 +02:00
1a0770a0ef
Also remove comment_like.post_id
2024-10-17 11:45:58 +02:00
a28d45d242
fmt
2024-10-17 11:23:16 +02:00
63a2f7b7e3
Drop timestamp column from votes (ref #5016 )
2024-10-17 11:18:09 +02:00
Steven Vergenz
859dfb3f81
Add community alphabetic sorting ( #5056 )
...
* Started
* Finished? Need to write tests
* Formatting
* Formatting
* Formatting
* Write tests
* Formatting
* Formatting
* Formatting
* Unnecessary lifetime
* Safety
* Unwrap
* Formatting
* Formatting
* Fix local_only test
* Formatting
* Name consistency
* Adding lower to community name sort.
---------
Co-authored-by: Dessalines <tyhou13@gmx.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2024-10-15 17:15:43 -04:00
9509ef1706
Update renovate config ( #5109 )
...
* Update renovate config
* ignroe rust updates, run on first day of month
* fix
2024-10-11 09:30:26 +02:00
renovate[bot]
c7210e39e7
Update typescript-eslint monorepo to v8.8.1 ( #5103 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-08 05:10:56 -04:00
a051772fff
Resize post thumbnails ( fixes #4053 ) ( #5107 )
...
* Resize post thumbnails (fixes #4053 )
* 256px
2024-10-08 10:24:55 +02:00
f5066b1f0b
Add test case for community.hidden in post_view (ref #5074 ) ( #5106 )
2024-10-07 19:39:25 -04:00
renovate[bot]
b009d45729
Update tmknom/prettier Docker tag to v3.2.5 ( #5102 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-06 04:02:18 -04:00
renovate[bot]
a611a232ea
Update tamasfe/taplo Docker tag to v0.9.3 ( #5101 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-06 01:17:46 -04:00
renovate[bot]
b200aecec7
Update dependency @types/node to v22.7.4 ( #5096 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-06 01:03:06 -04:00
renovate[bot]
a2c24def87
Update Rust crate reqwest to v0.12.8 ( #5082 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-06 00:39:06 -04:00
renovate[bot]
c4cfacd5cc
Update pnpm to v9.12.0 ( #5100 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-05 23:51:25 -04:00
renovate[bot]
4bfb28c26f
Update docker/dockerfile Docker tag to v1.10 ( #5099 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-05 23:29:54 -04:00
renovate[bot]
1056cbf979
Update dependency eslint to v9.12.0 ( #5097 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-05 23:29:30 -04:00
renovate[bot]
b79e871de8
Update dependency typescript to v5.6.2 ( #5098 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-05 21:22:33 -04:00
renovate[bot]
d925a7611b
Update dependency ts-jest to v29.2.5 ( #5089 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-05 17:45:59 -04:00
renovate[bot]
435b207105
Update Rust crate serde_with to v3.11.0 ( #5095 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-05 17:37:05 -04:00
renovate[bot]
5008aa7c76
Update Rust crate serde_with to v3.10.0 ( #5094 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-05 15:57:17 -04:00
renovate[bot]
f17cd0a6f9
Update Rust crate regex to v1.11.0 ( #5093 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-05 15:22:14 -04:00
renovate[bot]
cfe2d1b18d
Update Rust crate actix-web-prom to 0.9.0 ( #5091 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-05 12:55:45 -04:00
renovate[bot]
6e5130378d
Update rust-futures monorepo to v0.3.31 ( #5090 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-05 10:30:00 -04:00
renovate[bot]
4012e35081
Update Rust crate rustls to v0.23.14 ( #5083 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-05 03:30:13 -04:00
renovate[bot]
2fed70f692
Update Rust crate html2text to v0.12.6 ( #5081 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-05 00:26:23 -04:00
renovate[bot]
f39b0992c5
Update Rust crate clap to v4.5.19 ( #5080 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-04 22:16:34 -04:00
7c2445efe7
Resolve links to remote posts into local URL ( #5057 )
...
* move code to new file
* rewrite markdown links (fixes #2987 )
* add missing file
* add helper fn
* also convert post.url
* simplify search.rs
* clippy
* also rewrite user/community links in markdown
* Call from apub handlers, cleanup
* no network requests in test
* clippy
* fix tests
* serial
* test
* no mut
* add api test
* fix api test
2024-10-03 08:24:05 -04:00
Dessalines
432d46c1aa
Adding a get_random_community endpoint. ( #5042 )
...
* Adding a get_random_community endpoint.
- Fixes #4698
* Fixing issue from main.
* Adding ListingType to the query.
* More concise query filter.
2024-10-02 09:10:41 -04:00
netbrum
483bdd592e
Replace clippy::unwrap_used
in tests ( #5064 )
...
* Add LemmyResult to session_middleware tests
* Add LemmyResult to inboxes tests
* Add LemmyResult to slurs tests
* Add LemmyResult to markdown tests
* Add LemmyResult to rate_limiter tests
* Add LemmyResult to error tests
* Add LemmyResult to api_common utils tests
* Add LemmyResult to request tests
* Add LemmyResult to claims tests
* Propagate registration_applications errors
* Remove clippy::unwrap_used from community tests
* Add LemmyResult to community_view tests
* Add LemmyResult to db_schema post tests
* Add LemmyResult to site_aggregates tests
* Add LemmyResult to private_message tests
* Add LemmyResult to activity tests
* Add LemmyResult to federation_allowlist tests
* Add LemmyResult to comment_aggregates tests
* Add LemmyResult to post_report tests
* Add LemmyResult to moderator tests
* Add LemmyResult to community_aggregates tests
* Add LemmyResult to person_aggregates tests
* Add LemmyResult to language tests
* Add LemmyResult to post_aggregates tests
* Add LemmyResult to db_schema comment tests
* Add LemmyResult to actor_language tests
* Add LemmyResult to vote_view tests
* Add LemmyResult to registration_application_view tests
* Add LemmyResult to private_message_view tests
* Add LemmyResult to private_message_report_view tests
* Add LemmyResult to post_report_view tests
* Add LemmyResult to comment_report_view tests
* Add LemmyResult to sitemap tests
* Replace .expect() with .unwrap()
* Format code
* Remove clippy::unwrap_used from activity tests
* Add diesel result in db_schema tests
* Format code
* Map to_bytes() error to LemmyErrorType
* Remove clippy::unwrap_used from error tests
* Removing a few more unwraps, and cleaning up language code.
* Replace map_err with unwrap_or_default
* Replace ok_or with and_then
---------
Co-authored-by: Dessalines <tyhou13@gmx.com>
2024-10-02 08:50:21 -04:00
Dessalines
ffb94fde85
Adding local site settings to reject federated upvotes or downvotes. ( #5038 )
...
* Adding local site settings to reject federated upvotes or downvotes.
- Should help defend against downvote spamming instances.
- Fixes #4086
* Adding new vote mode types.
* Simpler activitypub vote check.
* Adding undo vote for failed vote mode check.
* Update crates/api_common/src/utils.rs
---------
Co-authored-by: Nutomic <me@nutomic.com>
2024-10-02 06:55:37 -04:00
Dessalines
e3edc317be
Add modlog entries for bulk removals. ( #5050 )
...
* Add modlog entries for bulk removals.
- Added unit tests for removal / restore to api_common/utils.
- Fixes #4699
* Address PR comments.
* Combining remove and restore functions.
* Trigger build.
* Trigger build 2.
* Changing allow to expect.
2024-10-01 10:59:52 -04:00
338344dbc5
Attempt to fix test for fetching deeply nested comment ( #5072 )
...
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2024-10-01 09:21:41 -04:00
renovate[bot]
0bc548cd5f
Update dependency @types/jest to v29.5.13 ( #5071 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-01 07:25:50 -04:00
renovate[bot]
1518aed929
Update Rust crate async-trait to v0.1.83 ( #5065 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-01 07:04:11 -04:00
Dessalines
c3f0a216bd
Changing renovate to run on the weekends. ( #5067 )
...
- Lemmy builds take a long time, and the current schedule only runs for
about 4 hours once a month, and renovate also rate-limits itself to
~ 2 per hour. This gives it a large enough window, without clogging
up my runner machines.
2024-10-01 12:40:52 +02:00
renovate[bot]
8d269fc08e
Update Rust crate tracing-actix-web to v0.7.13 ( #5070 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-30 23:48:52 -04:00
renovate[bot]
12275da318
Update Rust crate sitemap-rs to v0.2.2 ( #5069 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-30 23:27:01 -04:00
renovate[bot]
777992e829
Update Rust crate reqwest to v0.12.8 ( #5068 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-30 22:04:24 -04:00
renovate[bot]
0fcbd25ad5
Update Rust crate clap to v4.5.18 ( #5066 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-30 21:42:11 -04:00
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
5115ed4c09
Handle partial settings backup ( fixes #4307 ) ( #5063 )
...
* Handle partial settings backup (fixes #4307 )
* clippy
2024-09-30 20:21:06 -04:00
Dessalines
f7d881ac78
Adding skip_serializing_none to another OAuth API request. ( #5060 )
2024-09-27 11:15:44 -04:00
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
f6a24e133a
Replace clippy allow annotation with expect ( fixes #5012 ) ( #5048 )
2024-09-24 13:29:02 -04:00
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
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