cetra3
9406c3ad2b
Adjust the config check to be a separate faster to compile binary ( #3313 )
2023-06-26 06:23:21 -04:00
perillamint
3d7d6b2530
Respond with Content-Type: application/activity+json
( #3353 )
...
As per ActivityPub specification, the return type should be
`application/activity+json`, not `application/json`.
2023-06-26 12:10:04 +02:00
Nutomic
ddfa112e0b
Allow wildcard imports in schema.rs ( #3293 )
...
Dont mess with auto-generated code, this avoids problems with
clippy after running diesel commands
2023-06-26 11:18:29 +02:00
Scott
c5886404ef
Update DB local_user.theme type to text ( #3266 )
...
* Update local_user.theme type to text
* fix default value
* Undo auto generate changes
2023-06-26 10:53:04 +02:00
TKilFree
21d5349785
feat: allow all admins to purge content ( #3271 )
2023-06-26 10:47:39 +02:00
Neshura
203e35899e
Add separate Post check for is_valid_body_field ( #3263 )
...
* Add separate Post check for is_valid_body_field
* Modify is_valid_body_check for posts only
* Fix check var reinit in validation.rs
* Extra empty line to rerun woodpecker with changes
* Change Option to bool, add false to non-post calls
* Woodpecker trick.. again
* Probable rust_fmt fail fixed
* cargo_clippy changes
* Missing space between = and if
* Remove ; after body length checks
2023-06-26 10:47:01 +02:00
Felix Ableitner
ce0cf0e41b
Remove DELETED_REPLACEMENT_URL
2023-06-26 10:45:37 +02:00
Sander Saarend
6b28f8c616
Add support for sslmode=require for diesel-async DB connections ( #3189 )
2023-06-26 10:45:22 +02:00
cetra3
d6b580a530
Remove actix_rt
& use standard tokio spawn ( #3158 )
...
* Remove `actix_rt` & use standard tokio spawn
* Adjust rust log back down
* Format correctly
* Update cargo lock
* Add DB settings
* Change name and update to latest rev
* Clean up formatting changes
* Move `worker_count` and `worker_retry_count` to settings
* Update defaults
* Use `0.4.4` instead of git branch
2023-06-26 10:45:22 +02:00
Dessalines
37a47de3a8
Revert "feat: re-added captcha checks ( #3249 )" ( #3288 )
...
This reverts commit 8a086c8240
.
2023-06-26 10:45:22 +02:00
Dessalines
b6cd1bde8e
Fixing removed posts showing. Fixes #2875 ( #3279 )
...
* Fixing removed posts showing. Fixes #2875
* Fixing clippy.
2023-06-26 10:45:22 +02:00
TKilFree
9537878519
feat: re-added captcha checks ( #3249 )
2023-06-26 10:45:22 +02:00
Vijay Ramesh
418bca78e1
Merge branch 'main' into clear_deleted_posts_comments
2023-06-22 09:59:43 -07:00
Nutomic
ffce66abb8
Update apub library to 0.4.4 ( #3258 )
...
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-22 08:35:12 -04:00
Vijay Ramesh
0d576a8f23
Merge branch 'main' into clear_deleted_posts_comments
2023-06-21 13:35:37 -07:00
Scott
da3e3b6d8a
Ensure site can only either be a private instance or federated when creating or editing site ( #3237 )
...
* Add site visibility validation
* Fix formatting
* linter changes
* Update error message to match existing check
* Remove existing check
---------
Co-authored-by: Scott Merchant <97430840+scottmerchant@users.noreply.github.com>
2023-06-21 22:14:12 +02:00
Vijay Ramesh
4db65c191c
after 30 days post deletion, replace comment.content and post.body with 'Permanently Deleted'
2023-06-21 12:46:56 -07:00
Michał
4cdb9583e9
feat: allow overriding smtp_password with the LEMMY_SMTP_PASSWORD env var ( #3154 )
...
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-21 13:36:42 -04:00
Nutomic
e3eda68147
Correct error messages if user registers with taken user/email ( #3093 )
...
* Correct error messages if user registers with taken user/email (fixes #2955 )
* exists
2023-06-21 05:26:07 -04:00
Dessalines
1ef095dd96
Fixing cross_post duplicates. Fixes #3233 ( #3234 )
2023-06-21 10:56:44 +02:00
JP Moresmau
a1beccf353
Add test to check reading and listing posts return my_vote ( #3215 )
2023-06-21 10:48:39 +02:00
dullbananas
45818fb4c5
Reduce memory usage of rate limiting ( #3111 )
...
* Reduce Vec allocations
* Optimize stuff
* Move embedded migrations to separate crate
* Revert "Move embedded migrations to separate crate"
This reverts commit 44b1049970
.
* clippy, fmt
* Shrink rate limit allowance to f32
* Initialize rate limit allowance directly
* Add removal of old rate limit buckets
* Improve readability
* Remove usage of is_okay_and for Rust 1.67 compatibility
* Add dhat-heap feature
* Fix api_benchmark.sh and add run_and_benchmark.sh
* Revert "Fix api_benchmark.sh and add run_and_benchmark.sh"
This reverts commit b4528e5b85
.
* Revert "Add dhat-heap feature"
This reverts commit 08e835d487
.
* Manually revert remaining stuff
* Use Ipv6Addr in RateLimitStorage
* Shrink last_checked in RateLimitBucket to 32 bits
* Fix rate_limit::get_ip
* Stuff (#1 )
* Update rate_limiter.rs
* Update mod.rs
* Update scheduled_tasks.rs
* Fix rate_limiter.rs
* Dullbananas patch 1 (#2 )
* Update rate_limiter.rs
* Update mod.rs
* Update scheduled_tasks.rs
* Fix rate_limiter.rs
* Rate limit IPv6 addresses in groups
* Fmt lib.rs
* woodpicker trigger
* Refactor and comment `check_rate_limit_full`
* Add `test_split_ipv6`
* Replace -2.0 with UNINITIALIZED_TOKEN_AMOUNT
* Add `test_rate_limiter`
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-21 10:28:20 +02:00
Dessalines
5ff221a2e4
Fixing comment_view unit tests. ( #3224 )
2023-06-20 14:14:08 -04:00
Sander Saarend
8ed3f3530e
Fix parameter ordering for new_report_subject string ( #3210 )
2023-06-20 11:24:04 -04:00
Ivo Barros
4d160461ce
Feature add hours as sorting options backend ( #3161 )
...
* add hours as sorting options
* ran cargo +nightly fmt
* woodpicker trigger
2023-06-20 16:05:43 +02:00
kartikynwa
dc36d9ed89
Don't check verified email when an admin logs in ( #3209 )
...
Workaround for instance admins getting locked out when they turn on
the email verification requirement without having verified their
own email.
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-20 08:52:21 -04:00
Felix Ableitner
56de68c77a
Update translations
2023-06-20 10:59:27 +02:00
Sander Saarend
e23621c2cd
Calculate initial hot_rank and hot_rank_active for posts and comments from other instances ( #3131 )
...
* Calculate initial hot_rank when receiving posts and comments from other instances
* Move hot rank update logic into db_schema
2023-06-20 10:52:51 +02:00
Sander Saarend
007c7d5812
Remove e-mail verification success e-mails ( #3124 )
2023-06-16 11:53:33 -04:00
Alex Maras
becf75d1f9
Fix Hidden communities showing in community list ( #3094 )
...
* Only show hidden communities when explicitly searching for them rather then in "all"
* dont set hidden to false when creating and updating - let DB set default
* lint
---------
Co-authored-by: Alex Maras <alexmaras@gmail.com>
2023-06-15 13:39:58 +02:00
Nutomic
b5dba17426
Update all dependencies ( #3091 )
2023-06-15 11:37:05 +02:00
Wyatt Smith
744153eee6
Prevent making an instance private if federation is enabled. ( #3074 )
...
* Prevent making an instance private if federation is enabled.
* Added case where federation is enabled, check if the alternative setting is changed
* Merged the error messages for private instance/federation.
---------
Co-authored-by: Wyatt Smith <wys@dropbox.com>
2023-06-15 11:35:09 +02:00
Dessalines
5af831c6fa
Fix unapproved users being able to log in after registration mode set to closed. ( #3096 )
...
- Fixes #3095
2023-06-14 19:02:17 -04:00
Neshura
558035b128
Fix Issue #3075 by using None for local fields instead of Some(false) ( #3088 )
...
* Set insert and update form "local" to None
* Extra space to retrigger woodpecker
* Resolve code review request
https://github.com/LemmyNet/lemmy/pull/3088#discussion_r1229336958
* Remove extra space after None,
2023-06-14 08:34:45 -04:00
Nina Blanson
1c7bfd6be8
Fixes #1884 - Support Spoiler Tags ( #3018 )
...
* Fixes #1884 - Switches markdown libraries and creates a custom rule to manage spoiler blocks
* Add tests to cover invalid spoiler input
* Consolidate tests, add comments
* Make immutable, static instance of markdown parser
---------
Co-authored-by: Nutomic <me@nutomic.com>
2023-06-14 13:15:59 +02:00
Felix Ableitner
f3f95e5d2f
Fix compilation
2023-06-14 11:34:29 +02:00
JetpackJackson
91271a7ce4
Update RSS url ( #3053 )
...
* Update RSS url
* Fixed next line
* making sure this thing uploads
* Update feeds.rs
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-13 16:17:02 -04:00
Jared Schneiderman
5f92125e44
Add limit and pagination to feeds ( #2980 )
...
* adds limit and pagination to all rss feeds
* consistent ordering
* refactor page and limit and add after
* revert back to using page
* remove offset change
* refactor to impl adding helper methods
* clippy
2023-06-12 17:48:02 -04:00
Andy Brandt
b47ce4c2e6
use usize::MAX for line wrap length, since lettre does it for us ( #3034 )
...
fixes #2921
2023-06-12 15:29:15 +02:00
Charles Hall
14c18dbdae
allow specifying db uri in config file ( #2956 )
...
* allow specifying db uri in config file
* succumb to a bug in doku
See <https://github.com/anixe/doku/issues/33 >.
2023-06-09 08:18:22 -04:00
Dessalines
8cb5939f50
Adding hot_rank columns in place of function sorting. ( #2952 )
...
* Adding hot_rank columns in place of function sorting.
- Creates hot_rank columns for post, comment, and community.
- Fixes #2932
* Updating all hot ranks on startup.
* Fixing post.url migration.
* Removing update_instance_software from startup.
* Adding post_rank query
2023-06-08 16:15:15 -04:00
Andy Brandt
f98476c5c0
Fix private message e-mail notification subject and body ( #2963 )
...
It used to say:
Subject: Private message from [your username]
Body: [your username] - [private message]
It now display the correct username that it's from.
2023-06-08 13:42:32 -04:00
Anon
15c84e2f7b
Add comment depth check ( #2940 )
...
* Add comment depth check
* Move comment depth code
* linter fix
2023-06-08 10:31:26 -04:00
Nutomic
980df7545d
Fix translation build error ( fixes #2967 ) ( #2968 )
2023-06-08 07:12:40 -04:00
Nutomic
2423b89ced
Activitypub breaking changes for Lemmy 0.18 ( #2705 )
...
* Remove deprecated field `group.moderators`
* Drop column local_site.federation_debug
* Remove backwards compatibility code for feature/lock post
https://github.com/LemmyNet/lemmy/pull/2716
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-07 15:18:17 -04:00
derivator
9419dd7c05
Fall back to String for Comment::path when not using the full feature ( #2941 )
2023-06-07 09:38:46 -04:00
Carlrs
24323e17b2
update diesel to 2.1.0 and diesel-async to 0.3.0 (issue #2882 ) ( #2895 )
...
* update diesel to 2.1.0 and diesel-async to 0.3.0 (issue #2882 )
* get rid of deprecated RawValue type alias usage, explicitly import diesel types instead of using wildcard import
* Update diesel-derive-enum and diesel-derive-newtype libraries
* Revert manual changes to schema.rs
* Update to newer diesel-cli image in CI, run fix-clippy before schema comparison, update schema to one generated with diesel-cli 2.1.0 and clippyfixed
* Remove wildcard import lint, fix diesel schema pipeline
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-07 12:54:40 +02:00
vpzomtrrfrt
09099e7b90
Fix handling of follows addressed to single value ( #2920 )
...
* Fix handling of follows addressed to single value
* Switch to deserialize_skip_error for Follow to
* Also use deserialize_skip_error for AcceptFollow and UndoFollow
* actually import deserialize_skip_error
2023-06-06 18:33:38 -04:00
Nutomic
3565ad984a
Remove chatserver ( #2919 )
...
* Remove chatserver
* fix clippy
* Remove captchas (fixes #2922 )
* fix prettier
* fix api_common build
* cargo fmt
2023-06-06 12:27:22 -04:00
Dessalines
ef1aa18fd2
Adding taglines to SiteResponse. Fixes #2925 ( #2926 )
...
* Adding taglines to SiteResponse. Fixes #2925
* Fixing CI line.
2023-06-06 08:59:34 -04:00