Nutomic
7b86307760
Ignore accept-language header if not site languages are specified ( #5485 )
2025-03-06 09:34:20 -05:00
Nutomic
b14c6ae0ee
Add more options for image uploads ( #5483 )
...
* Add more options for image uploads
* remove separate option for animations
* add comment
2025-03-06 04:44:52 -05:00
Nutomic
1e02dea397
Use connection url to configure email ( fixes #5472 ) ( #5476 )
...
* Use connection url for configure email (fixes #5472 )
* clippy
2025-03-04 13:50:19 -05:00
Dessalines
a6507c169d
Extracting pagination cursor utils into a trait. ( #5424 )
...
* Extracting pagination cursor utils into a trait.
- Fixes #5275
* Refactoring to avoid stack overflows.
* Fixing api_common feature.
* Rename the traits and paginationcursor::new
* Using combined trait.
* Removing empty files.
2025-03-04 13:00:18 -05:00
flamingos-cant
2f2f58da65
Add HTML classes to mention ( #5475 )
2025-03-04 09:31:44 -05:00
Dessalines
03630c8abd
Direct questions to lemmy.ml/c/lemmy_support. #5464 ( #5467 )
...
* Direct questions to lemmy.ml/c/lemmy_support. #5464
* Add matrix chat.
2025-03-04 09:50:53 +01:00
Nutomic
62fb03599a
Use version from git to indicate unreleased changes ( #5470 )
2025-03-03 10:55:33 -05:00
Nutomic
97772b9553
Add config option to enable json logging ( #5471 )
2025-03-03 10:51:28 -05:00
flamingos-cant
e7ab5256f7
Add new setting to block NSFW content ( #5436 )
...
* Block NSFW content on instances with it disabled
* Make disallow_nsfw_content a local_site setting
* Clippy
* Add comma
* SQL fmt
* Newline
* Use func in apub + update js-client
* Remove extra db queries, add purge_post_images
* Add back local_site to funcs that need it
* Fix tests
* Add delay to api test
* Address comments
* Cleanup
* Return results from db func
* fmt
* Remove unneeded result
* Sync translations
2025-03-03 11:46:39 +01:00
renovate[bot]
be91a2f39c
Update Rust crate anyhow to v1.0.96 ( #5465 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-28 21:09:53 -05:00
renovate[bot]
0f9aab4143
Update Rust crate chrono to v0.4.40 ( #5466 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-28 21:09:03 -05:00
Nutomic
359942272a
Get rid of Option<Vec<_>>
in api structs ( fixes #2820 ) ( #5463 )
...
* Get rid of `Option<Vec<_>>` in api structs (fixes #2820 )
* update js client
* only responses
2025-02-28 10:07:07 -05:00
Felix Ableitner
253230a5cb
Run cargo check after updating translations to catch errors
2025-02-28 14:39:10 +01:00
Felix Ableitner
cd1da33fa1
Version 1.0.0-alpha.2
2025-02-28 14:33:44 +01:00
Felix Ableitner
0ad8466f06
Version 1.0.0-alpha.1
2025-02-28 14:18:28 +01:00
Nutomic
a3a988655d
Fix federation of unban action ( fixes #5454 ) ( #5456 )
...
* Fix federation of unban action (fixes #5454 )
* remove log
2025-02-28 08:09:19 -05:00
Nutomic
6e3355f941
Also search url field by default ( #5459 )
2025-02-28 08:08:55 -05:00
Draconic NEO
1a299ba628
Include image alt text in post search ( #5449 )
...
* Add Alt-Text Filter to post_view.rs
Added Alt-text filter to search
* Actually use the Alt-text filter I added
Add the call to actually use the alt-text filter I added.
* Create down.sql of migration
* Create up.sql
* Fixing SQL format.
---------
Co-authored-by: Dessalines <tyhou13@gmx.com>
2025-02-25 13:28:15 -05:00
Nutomic
493734d1b3
Show posts/comments from followed communities despite instance block ( #5437 )
...
* Show posts/comments from followed communities despite instance block (fixes #4303 )
* move to utils
2025-02-20 17:18:38 -05:00
Nutomic
544a4cc039
Simplify slur regex ( #5442 )
...
* Simplify logic for slur regex
* Fix tests
* clippy
* fix test
* cache regex
* longer cache duration
2025-02-20 12:47:18 -05:00
Nutomic
510b0db869
Deleted user shouldnt break federation outbox ( fixes #5441 ) ( #5443 )
...
* Deleted user shouldnt break federation outbox (fixes #5441 )
* clippy
2025-02-20 12:46:36 -05:00
Dessalines
7f0ef4d7f4
Fix matrix id import. #5063 ( #5440 )
2025-02-20 09:29:07 +01:00
Nutomic
a65d4034d8
Reduce usage of async_trait ( #5438 )
...
* Reduce usage of async_trait
* use trait
* move dep
2025-02-19 11:06:22 -05:00
Dessalines
806f541fe5
Add ability to view your own sent reports. ( #5427 )
...
- Fixes #5108
2025-02-16 11:32:29 -05:00
Nutomic
d1eff9084b
Rate limit changes ( fixes #5287 ) ( #5421 )
...
* Stricter rate limit for fetching link metadata (fixes #5287 )
* Switch to search rate limit
* use search rate limit for resolve object
* pictrs rate limit
* undo test change
* fix
2025-02-14 07:36:16 -05:00
Dessalines
a4bf28e123
Use rust:1.81 for CI. ( #5423 )
...
* Use rust:1.81 for CI.
- Should speed up CI jobs a lot, due to the diesel issues with 1.82+.
* Upgrading deps.
2025-02-13 09:51:42 +01:00
Nutomic
0e87900953
Allow sending report only to admins ( fixes #2414 ) ( #5350 )
...
* Allow sending report only to admins (fixes #2414 )
* fix api test
* Rename `to_local_admins` to `violates_instance_rules`
* Review fixes
* fix api test
2025-02-12 16:34:43 +01:00
Dessalines
ae9c735e90
Adding ability to resend verification email. ( #5420 )
...
* When verifying email, add note about waiting for approval.
- Fixes #5392
* Refactoring local user interface language.
* Removing rosetta from api common.
* Remove pointless Ok
* Add ability to resend verification email.
- Fixes #5191
* Forgot to commit file.
* Fixing bad merge.
* Using send_verification_email_if_required.
2025-02-12 10:21:34 -05:00
Dessalines
189491d1ca
Show comments for hidden communities. ( #5417 )
...
- Fixes #5390
2025-02-12 08:05:14 -05:00
Dessalines
c71e2a2195
When verifying email, add note about waiting for approval. ( #5419 )
...
* When verifying email, add note about waiting for approval.
- Fixes #5392
* Refactoring local user interface language.
* Removing rosetta from api common.
* Remove pointless Ok
2025-02-12 07:45:25 -05:00
Nutomic
0af973c3a2
Also remove private messages when banning user with "remove content" ( #5414 )
...
* Also remove private messages when banning user with "remove content"
* add private message removed
* fix formatting
2025-02-12 07:45:07 -05:00
Nutomic
7c7e482936
Ignore follow requests from kbin, mbin for private communities ( #5416 )
...
These platforms dont support privacy controls for votes, so they
will most likely leak the content of private communities as well.
Need to block them until support is implemented.
https://github.com/MbinOrg/mbin/issues/1115
2025-02-11 10:24:10 -05:00
Dessalines
91a77ae456
Adding a can_mod field to CommentView, PostView, and CommunityView. ( #5398 )
...
* Adding a can_mod field to CommentView, PostView, and CommunityView.
- Also removes the moderators from GetPost, as that should no longer
be necessary.
- Fixes #4365
* Adding can_mod to reply variants.
* Addressing PR comments.
* Hiding comment.content for non-admins / mods.
- Uses the local_user_can_mod function now.
- Fixes #5232
2025-02-11 12:09:27 +01:00
Dessalines
426684d90f
Adding blurhash to image_details. ( #5227 )
...
* Adding blurhash to image_details.
- Fixes #5142
* Using new pictrs to get blurhash.
* Fixing ts-binding.
* Addressing PR comments.
* Commenting checks.
* Switching back to rust 1.81.
* Adding diesel schema
* Adding database user creation.
* Specific tests.
* Upping pictrs to 0.5.17-pre.9
* Fixing
* Using full tests.
* Fixing pictrs hash.
* Upgrading pnpm deps.
2025-02-10 17:27:22 -05:00
Dessalines
16ba42c152
Adding a variable time_range_limit, rather than having many post sorts like TopSixHours
( #5403 )
...
* Adding a variable time_range_seconds. #4340
* Adding default_post_time_range_seconds columns to local_user and site.
* Fixing ts-bindings.
* Fixing API comments.
* Update crates/db_schema/src/utils.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Add zero means override, to list_posts default time range.
---------
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
2025-02-10 22:41:20 +01:00
Nutomic
56ed92ca92
Fix hash check for pictrs binary ( #5411 )
2025-02-10 14:22:24 -05:00
Dessalines
d8a4fd6125
Adding listing_type filter for modlog. ( #5399 )
...
* Adding listing_type filter for modlog.
- Fixes #4219
* Running fmt.
* Change the listing_type.all to not filter by community.
* Adding GetModlog API docs.
* Addressing PR comments 2
2025-02-07 12:53:15 -05:00
Nutomic
496ae58cb6
Enable emails in Chinese ( #5400 )
2025-02-07 11:44:41 -05:00
Nutomic
b92853824f
Cors policy should allow any origin by default ( fixes #5405 ) ( #5406 )
2025-02-07 11:11:44 -05:00
Nutomic
ba7d4bd117
Merge functions for formatting local urls ( #5394 )
...
* Merge functions for formatting local urls
* move methods to db structs
* typo
2025-02-07 11:11:16 -05:00
Dessalines
f0b00ccf94
Fixing a few view's saved columns to use the optional datetime. ( #5402 )
...
- Also adds some comments for them, since its a nullable string
in the generated types.
2025-02-07 07:51:32 -05:00
Nutomic
865f0734ba
Fix crash while rewriting markdown ( fixes #5380 ) ( #5395 )
...
* Special characters in markdown links (ref #5380 )
* fix (fixes #5380 )
* fix test
2025-02-06 08:00:36 -05:00
Nutomic
20fa90a23c
Rename actor_id columns to ap_id ( #5393 )
...
* Rename actor_id columns to ap_id
* update api tests
* fix
* lint
2025-02-05 22:56:37 -05:00
Felix Ableitner
1edc9f922d
Version 1.0.0-alpha.0
2025-02-05 15:19:27 +01:00
Nutomic
ebb211e7ad
Improve email notification text (by @timothyhay256) ( #5383 )
...
* Improve email notification text
* fix translations
* Add markdown-it-footnotes (#5303 )
* Remove unused param Create/EditSite.enable_nsfw
* Remove unnecessary Cargo.toml entry (#5279 )
* Running cargo-wizard to speed up compilation times.
* Fix 1.
* Fix 2
* Removing panic abort, and config.toml file.
* Add custom migration runner, forbid some `diesel migration` commands, fix old migrations (#4673 )
* Update schema.rs
* rename
* stuff
* finish new implementation of schema_setup::run (not including revert, test, etc.)
* fmt
* refactor
* fix sql
* migriation run command
* use trigger on migrations table
* add Options with disable_migrations field for test
* rename to enable_forbid_diesel_cli_trigger
* fix
* fix merge
* diff_checker (partial)
* Revert "diff_checker (partial)"
This reverts commit 6709882e14
.
* Revert "Revert "diff_checker (partial)""
This reverts commit d4bdda5d11
.
* diff check
* improve schema diff
* timestamp replacement
* ignore column order
* remove fedi_name default
* stuff
* improve diff
* stuff
* attempt parallel pg_dump
* attempt 2
* Revert "attempt 2"
This reverts commit a909d2d643
.
* Revert "attempt parallel pg_dump"
This reverts commit 592a127954
.
* improve diff check
* finish fixing migrations
* stuff
* use advisory lock
* stuff
* Update lib.rs
* fmt
* fmt
* clippy
* Update diff_check.rs
* Update .woodpecker.yml
* Update lib.rs
* Update lib.rs
* Update lib.rs
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update lib.rs
* re-run ci
* fmt
* fmt
* Update .woodpecker.yml
* Update .woodpecker.yml
* create separate database in ci
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update .woodpecker.yml
* try to fix env var
* Update diff_check.rs
* Remove condition that's not needed anymore
* clippy
* exclude views and fast tables
* revert some migration changes
* fix
* fmt
* re-attempt checking character after skipped trigger name, and make code less confusing
* fmt
* fix
* rerun ci
* rerun ci
* fix strip_prefix order
* fix weird big Cargo.lock change by running `git checkout upstream/main Cargo.lock` then letting it auto update again
* fix
* remove installation commands that were removed in main branch
* Revert "remove installation commands that were removed in main branch"
This reverts commit fd65234a76
.
* move create_database_user woodpecker step to make diff less weird
* fix clippy
* Make diff check work just like before
* Move new migrations to the end
* Revert changes to old migrations
* don't assume that migrations are already sorted
* retry CI
* fix merge
* find migrations dir in debug mode using CARGO_MANIFEST_DIR variable instead of current working directory
* always use embedded migrations
* improve doc comments for migration subcommand
* clippy fix
* move cfg(test) attribute to diff_check.rs
* copy `o` variable instead of calling `o` function
* use chrono::TimeDelta Display implementation to show migration duration
* Remove unused params on CreateSite/EditSite (#5311 )
* Automatically marking posts created in an NSFW community as NSFW. (#5310 )
* Automatically marking posts created in an NSFW community as NSFW.
- Context: https://github.com/LemmyNet/lemmy-ui/issues/2885
* Update crates/api_crud/src/post/create.rs
Co-authored-by: Nutomic <me@nutomic.com>
---------
Co-authored-by: Nutomic <me@nutomic.com>
* Correct HTTP status for NotFound error (fixes #5309 ) (#5313 )
* Fix incorrectly using delete instead of uplete in update_banned_when_expired (#5316 )
* Remove unused apub audience field (fixes #5278 ) (#5315 )
* Remove unused apub audience field (fixes #5278 )
* fix
* fix test
* remove comments
* Change default image_mode to proxy, remove deprecated option (#5176 )
* Change default image_mode to proxy, remove deprecated option
* fix api test
* Add community reports (only the database part) (#4996 )
* database stuff, not including tests
* change migration date
* fix community_report_view
* update stuff related to report_combined
* add db_schema/src/impls/community_report.rs
* add report counts to community_aggregates
* fix community_report columns and update report_combined_view::tests::test_combined
* add column for original sidebar; use None instead of clone; add report_combined_view::tests::test_community_reports
* use ts(optional) in CommunityReportView
* remove CommunityReportView::read
* Correctly paginate PostView when read_only is enabled (#5320 )
* Image api rework (#5260 )
* Split image endpoints into API v3 and v4
* Move into subfolders
* Upload avatar endpoint and other changes
* Various other changes
fixes #1772
fixes #4001
* clippy
* config options
* fix ts bindings
* fix api tests
* Add option to disable image upload (fixes #1118 )
* split files into upload, download
* move sitemap to top level, not in api
* simplify code
* add upload user banner
* community icon/banner
* site icon/banner
* update js client
* wip
* add delete endpoints
* change comment
* optimization
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* move fn
* 1024px banner
* dont use static client
* fix api tests
* shear
* proxy pictrs in request.rs (fixes #5270 )
* clippy
* try to fix api tests
* skip api tests
* create user
* debug
* dbg
* test
* image
* run another
* fixed?
* clippy
* fix
* fix health check
---------
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Optimize migrations (#5301 )
* Optimize migrations
* update smoosh migration
---------
Co-authored-by: Dessalines <tyhou13@gmx.com>
* Adding Combined modlog (#5253 )
* Combined tables try 2
* Finishing up combined report table.
* Fix ts optionals.
* Adding tests, triggers, and history updates for report_combined.
* Adding profile.
* Add cursor pagination to report_combined view (#5244 )
* add pagination cursor
* store timestamp instead of id in cursor (partial)
* Revert "store timestamp instead of id in cursor (partial)"
This reverts commit 89359dde4b
.
* use paginated query builder
* Fixing migration and paged API.
* Using dullbananas trigger procedure
* Removing pointless list routes, reorganizing tests.
* Fixing column XOR check.
* Forgot to remove list report actions.
* Cleanup.
* Use internal tagging.
* Fixing api tests.
* Adding a few indexes.
* Fixing migration name.
* Fixing unique constraints.
* Addressing PR comments.
* Start working on profile combined
* Adding views and replaceable schema.
* A few changes to profile view.
- Separating the profile fetch from its combined content fetch.
- Starting to separate saved_only into its own combined view.
* Finishing up combined person_saved and person_content.
* Fixing api tests.
* Moving to api-v4 routes.
* Fixing imports.
* Update crates/db_views/src/report_combined_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update crates/db_views/src/report_combined_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update crates/db_views/src/report_combined_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update migrations/2024-12-02-181601_add_report_combined_table/up.sql
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update migrations/2024-12-02-181601_add_report_combined_table/up.sql
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Fixing import and fmt.
* Fixing null types in postgres.
* Comment out err.
* Fixing TS issues.
* Adding types, fixing allow and blocklist crud.
* Starting to work on combined views.
* Using dullbananas trigger procedure
* Adding the full combined view queries.
* Adding tests.
* taplo fmt.
* Upgrading package.json deps.
* Updating pnpm
* Addressing PR comments.
* Removing serialization
* Removing serialization
* Fixing duped trigger.
* Remove saved_only test.
* Remove pointless post_tags types.
* Remove pointless index.
* Changing published to saved for person_saved_combined.
* Removing comment.
* Renaming modlog when_ columns to published.
- Fixes #5312
* Adding strum and simplifying imports.
* Avoiding clone in map_to_enum
* Changing modded_person to other_person.
* Update crates/db_views_moderator/src/modlog_combined_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update crates/db_views_moderator/src/modlog_combined_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update crates/db_views_moderator/src/modlog_combined_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Addressing PR comments.
* Fixing split.
* Revert "Adding strum and simplifying imports."
This reverts commit 15f1671107
.
* Running fmt.
* Using assert + matches instead of filter_map.
* Adding listPersonContent check.
---------
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Fixing person_content_combined migration uniques. (#5324 )
* Upgrading deps. (#5326 )
* Upgrading deps.
* Upgrading a few more.
* A few more
* Pictrs delete token (#5317 )
* Split image endpoints into API v3 and v4
* Move into subfolders
* Upload avatar endpoint and other changes
* Various other changes
fixes #1772
fixes #4001
* clippy
* config options
* fix ts bindings
* fix api tests
* Add option to disable image upload (fixes #1118 )
* split files into upload, download
* move sitemap to top level, not in api
* simplify code
* add upload user banner
* community icon/banner
* site icon/banner
* update js client
* wip
* add delete endpoints
* change comment
* optimization
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* move fn
* 1024px banner
* dont use static client
* fix api tests
* shear
* proxy pictrs in request.rs (fixes #5270 )
* clippy
* Get rid of pictrs delete token
* remove delete token params
* try to fix api tests
* fmt
* skip api tests
* clippy
* create user
* debug
* dbg
* ignore test
* test
* image
* run another
* fixed?
* clippy
* fix
* migration with column order
* drop default
* fix health check
* update client
* remove unused
* fix
* reuse delete_image_from_pictrs
* update lib
---------
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Adding combined inbox (#5257 )
* Renaming person_mention to person_comment_mention.
* Finishing up post body mentions.
* Combined tables try 2
* Finishing up combined report table.
* Fix ts optionals.
* Adding tests, triggers, and history updates for report_combined.
* Adding profile.
* Add cursor pagination to report_combined view (#5244 )
* add pagination cursor
* store timestamp instead of id in cursor (partial)
* Revert "store timestamp instead of id in cursor (partial)"
This reverts commit 89359dde4b
.
* use paginated query builder
* Fixing migration and paged API.
* Using dullbananas trigger procedure
* Removing pointless list routes, reorganizing tests.
* Fixing column XOR check.
* Forgot to remove list report actions.
* Cleanup.
* Use internal tagging.
* Fixing api tests.
* Adding a few indexes.
* Fixing migration name.
* Fixing unique constraints.
* Addressing PR comments.
* Start working on profile combined
* Adding views and replaceable schema.
* A few changes to profile view.
- Separating the profile fetch from its combined content fetch.
- Starting to separate saved_only into its own combined view.
* Finishing up combined person_saved and person_content.
* Fixing api tests.
* Moving to api-v4 routes.
* Fixing imports.
* Update crates/db_views/src/report_combined_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update crates/db_views/src/report_combined_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update crates/db_views/src/report_combined_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update migrations/2024-12-02-181601_add_report_combined_table/up.sql
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update migrations/2024-12-02-181601_add_report_combined_table/up.sql
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Fixing import and fmt.
* Fixing null types in postgres.
* Comment out err.
* Fixing TS issues.
* Adding types, fixing allow and blocklist crud.
* Starting to work on combined views.
* Using dullbananas trigger procedure
* Adding the full combined view queries.
* Adding tests.
* taplo fmt.
* Upgrading package.json deps.
* Updating pnpm
* Most of the bulk work done, need to add tests yet.
* Finishing up inbox.
* Using assert_length
* Fixing sql_format.
* Running fmt.
* Fixing cargo shear.
* Fixing clippy.
* Addressing PR comments.
* Removing serialization
* Removing serialization
* Fixing duped trigger.
* Remove saved_only test.
* Remove pointless post_tags types.
* Remove pointless index.
* Changing published to saved for person_saved_combined.
* Removing comment.
* Renaming modlog when_ columns to published.
- Fixes #5312
* Adding strum and simplifying imports.
* Avoiding clone in map_to_enum
* Changing modded_person to other_person.
* Update crates/db_views_moderator/src/modlog_combined_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update crates/db_views_moderator/src/modlog_combined_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update crates/db_views_moderator/src/modlog_combined_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Addressing PR comments.
* Fixing split.
* Revert "Adding strum and simplifying imports."
This reverts commit 15f1671107
.
* Running fmt.
* Using assert + matches instead of filter_map.
* Adding listPersonContent check.
* Updating lemmy-js-client
* Fixing mark all as read route, changing mark read to SuccessResponse.
* Adding post body mention api test, fixing api tests.
* Fixing route locations, and api tests.
---------
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Add media filter setting (#5325 )
* Add hide_media filter
* Test media is returned when hide_media is false
* Add GIN index
* SQL fmt
* Drop GIN index in migration
* Changes to get_random_community_id: add filters for nsfw and private, use algorthm that doesn't scan the entire table (#5267 )
* get_random_community_id: add filters for nsfw and private, use algorithm that doesn't scan the entire table
* only call random_smallint once for filter
* change migration date
* make random_smallint function work in postgresql 16
* replace "32768 + 32767 + 1" with "65536" and improve comments
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
* Add support for donation dialog (fixes #4856 ) (#5318 )
* Add support for donation dialog (fixes #4856 )
* more changes
* test
* remove files
* default value for new user last_donation_notification
* move disable_donation_dialog to local_site
* restore formatting
* Clean up LemmyError::status_code (#5330 )
* Return correct status code for rate limit error (ref #5332 ) (#5333 )
* Upgrading html2text. (#5336 )
* Prevent incorrectly using delete instead of uplete (#5331 )
* implement check and test it by modifying PostLike::remove
* revert change in PostLike::remove
* Implement request idempotency (fixes #4735 ) (#5329 )
* Implement request idempotency (fixes #4735 )
* delete old items
* clippy
* remove todo
* Skip api test for community follower count (fixes #5179 ) (#5339 )
* Change federation community restricted check to apply only locally (#5343 )
* Revert "Fetch community mods synchronously (#5169 )"
This reverts commit 542e59bcae
.
* change restricted check (fixes #5337 )
* Send federated reports to all community mods (#5342 )
* Move middleware code into api_routes for faster compilation (#5341 )
* Move middleware code into api_routes for faster compilation
* fix wasm
* cleanup
* Hash check and retry for pictrs binary (#5345 )
* Hash check and retry for pictrs binary
* retry limit
* Adding a slim comment_view variant, without post or community. (#5335 )
* Adding a slim comment_view variant, without post or community.
- Fixes #2957
* Alternate version.
* Only clone if check.
* Revert "Alternate version."
This reverts commit 64493959aa
.
* Remove trait.
* Change println! to debug! (#5346 )
* Adding post_id and type_ filters to combined reports. (#5348 )
* Adding post_id and type_ filters to combined reports.
- Added tests for these also.
- Some additional cleanup of the joins in reports_combined.
- Fixes #5265
* Adding period.
* Allow setting multiple values for cors_origin (fixes #5198 ) (#5353 )
* Allow setting multiple values for cors_origin (fixes #5198 )
* fmt
* mention env var
* Search combined (#5271 )
* Renaming person_mention to person_comment_mention.
* Finishing up post body mentions.
* Combined tables try 2
* Finishing up combined report table.
* Fix ts optionals.
* Adding tests, triggers, and history updates for report_combined.
* Adding profile.
* Add cursor pagination to report_combined view (#5244 )
* add pagination cursor
* store timestamp instead of id in cursor (partial)
* Revert "store timestamp instead of id in cursor (partial)"
This reverts commit 89359dde4b
.
* use paginated query builder
* Fixing migration and paged API.
* Using dullbananas trigger procedure
* Removing pointless list routes, reorganizing tests.
* Fixing column XOR check.
* Forgot to remove list report actions.
* Cleanup.
* Use internal tagging.
* Fixing api tests.
* Adding a few indexes.
* Fixing migration name.
* Fixing unique constraints.
* Addressing PR comments.
* Start working on profile combined
* Adding views and replaceable schema.
* A few changes to profile view.
- Separating the profile fetch from its combined content fetch.
- Starting to separate saved_only into its own combined view.
* Finishing up combined person_saved and person_content.
* Fixing api tests.
* Moving to api-v4 routes.
* Fixing imports.
* Update crates/db_views/src/report_combined_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update crates/db_views/src/report_combined_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update crates/db_views/src/report_combined_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update migrations/2024-12-02-181601_add_report_combined_table/up.sql
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update migrations/2024-12-02-181601_add_report_combined_table/up.sql
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Fixing import and fmt.
* Fixing null types in postgres.
* Comment out err.
* Fixing TS issues.
* Adding types, fixing allow and blocklist crud.
* Starting to work on combined views.
* Using dullbananas trigger procedure
* Adding the full combined view queries.
* Adding tests.
* taplo fmt.
* Upgrading package.json deps.
* Updating pnpm
* Most of the bulk work done, need to add tests yet.
* Finishing up inbox.
* Using assert_length
* Fixing sql_format.
* Running fmt.
* Fixing cargo shear.
* Fixing clippy.
* Addressing PR comments.
* Starting to work on search combined.
* Fix
* Removing serialization
* Removing serialization
* Moving db_views_actor and _moderator into db_views.
- This is necessary because the combined views use both, and that
separation was arbitrary to begin with. db_schema has no such crate
separation.
* Adding search combined view, need to write tests yet.
* Filters done, working on tests.
* Adding tests for person, post, and community.
* Finishing up tests.
* Fixing duped trigger.
* Remove saved_only test.
* Remove pointless post_tags types.
* Remove pointless index.
* Changing published to saved for person_saved_combined.
* Removing comment.
* Renaming modlog when_ columns to published.
- Fixes #5312
* Adding strum and simplifying imports.
* Avoiding clone in map_to_enum
* Changing modded_person to other_person.
* Update crates/db_views_moderator/src/modlog_combined_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update crates/db_views_moderator/src/modlog_combined_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update crates/db_views_moderator/src/modlog_combined_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Addressing PR comments.
* Fixing split.
* Revert "Adding strum and simplifying imports."
This reverts commit 15f1671107
.
* Running fmt.
* Using assert + matches instead of filter_map.
* Adding listPersonContent check.
* Updating lemmy-js-client
* Fixing mark all as read route, changing mark read to SuccessResponse.
* Adding post body mention api test, fixing api tests.
* Fixing route locations, and api tests.
* Formatting sql.
* Formatting sql 2.
* Fixing search result, running clippy.
* Fixing ts_option.
* Adding search_combined.score column, and DB triggers.
* Fixing API tests.
* Adding an index for score.
* Update crates/db_schema/src/newtypes.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Avoiding inner joins for up.sql
* Adding person_aggregates.published column.
---------
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Add some url validation (#5338 )
* Add some url validation
* use library fn
* manually follow redirects
* remove log
* avoid infinite redirect/infinite recursion
* fix
* upgrade lib
* check url scheme
* Only list local banned users (fixes #2961 ) (#5364 )
* Remove instrument macros (#5368 )
* Remove instrument macros
* shear
* revert test change
* clippy, another unused function
* Remove unused files (#5366 )
* Deny unknown config fields (#5370 )
* Only print migration output when running migrate command (#5363 )
* Revert "Change println! to debug! (#5346 )"
This reverts commit 8ee81a3967
.
* Using a custom print command.
* Fix missing word in create_triggers comment (#5375 )
* Adding listing_type.ModeratorView for list communities. (#5377 )
- Fixes #5352
* Use different counts for denominator in scaled rank for posts (#5261 )
* Change 'Scaled' sort to use total interactions instead of monthly users
* Misc SQL fixes
* Fix formatting of error message
* Run rustfmt
* Using different corepack install method to fix corepack bug. (#5379 )
- https://github.com/nodejs/corepack/issues/612
* Federate "resolve report" action (#5367 )
* Federete resolve report action (fixes #4744 )
* working
* clippy and fixes
* fix test
* verify mod action
* add workaround for test
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
* Use mimalloc as memory allocator (#5378 )
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
* Converting joins, filters, and selects to common functions for DB views. (#5359 )
* Renaming person_mention to person_comment_mention.
* Finishing up post body mentions.
* Combined tables try 2
* Finishing up combined report table.
* Fix ts optionals.
* Adding tests, triggers, and history updates for report_combined.
* Adding profile.
* Add cursor pagination to report_combined view (#5244 )
* add pagination cursor
* store timestamp instead of id in cursor (partial)
* Revert "store timestamp instead of id in cursor (partial)"
This reverts commit 89359dde4b
.
* use paginated query builder
* Fixing migration and paged API.
* Using dullbananas trigger procedure
* Removing pointless list routes, reorganizing tests.
* Fixing column XOR check.
* Forgot to remove list report actions.
* Cleanup.
* Use internal tagging.
* Fixing api tests.
* Adding a few indexes.
* Fixing migration name.
* Fixing unique constraints.
* Addressing PR comments.
* Start working on profile combined
* Adding views and replaceable schema.
* A few changes to profile view.
- Separating the profile fetch from its combined content fetch.
- Starting to separate saved_only into its own combined view.
* Finishing up combined person_saved and person_content.
* Fixing api tests.
* Moving to api-v4 routes.
* Fixing imports.
* Update crates/db_views/src/report_combined_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update crates/db_views/src/report_combined_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update crates/db_views/src/report_combined_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update migrations/2024-12-02-181601_add_report_combined_table/up.sql
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update migrations/2024-12-02-181601_add_report_combined_table/up.sql
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Fixing import and fmt.
* Fixing null types in postgres.
* Comment out err.
* Fixing TS issues.
* Adding types, fixing allow and blocklist crud.
* Starting to work on combined views.
* Using dullbananas trigger procedure
* Adding the full combined view queries.
* Adding tests.
* taplo fmt.
* Upgrading package.json deps.
* Updating pnpm
* Most of the bulk work done, need to add tests yet.
* Finishing up inbox.
* Using assert_length
* Fixing sql_format.
* Running fmt.
* Fixing cargo shear.
* Fixing clippy.
* Addressing PR comments.
* Starting to work on search combined.
* Fix
* Removing serialization
* Removing serialization
* Moving db_views_actor and _moderator into db_views.
- This is necessary because the combined views use both, and that
separation was arbitrary to begin with. db_schema has no such crate
separation.
* Adding search combined view, need to write tests yet.
* Filters done, working on tests.
* Adding tests for person, post, and community.
* Finishing up tests.
* Fixing duped trigger.
* Remove saved_only test.
* Remove pointless post_tags types.
* Remove pointless index.
* Changing published to saved for person_saved_combined.
* Removing comment.
* Renaming modlog when_ columns to published.
- Fixes #5312
* Adding strum and simplifying imports.
* Avoiding clone in map_to_enum
* Changing modded_person to other_person.
* Update crates/db_views_moderator/src/modlog_combined_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update crates/db_views_moderator/src/modlog_combined_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update crates/db_views_moderator/src/modlog_combined_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Addressing PR comments.
* Fixing split.
* Revert "Adding strum and simplifying imports."
This reverts commit 15f1671107
.
* Running fmt.
* Using assert + matches instead of filter_map.
* Adding listPersonContent check.
* Updating lemmy-js-client
* Fixing mark all as read route, changing mark read to SuccessResponse.
* Adding post body mention api test, fixing api tests.
* Fixing route locations, and api tests.
* Formatting sql.
* Formatting sql 2.
* Fixing search result, running clippy.
* Fixing ts_option.
* Adding search_combined.score column, and DB triggers.
* Fixing API tests.
* Adding an index for score.
* Using next_back instead of last.
* Converting local_user_view to use diesel auto_type.
* Use AllColumns as suggested by weiznich to simplify Type.
* Registration application view.
* Person view simplifying.
* Community view.
* Community moderator view.
* Community view.
* Community follower view.
* Community moderator view.
* Person view.
* Custom emoji view.
* Local image view.
* Removing strum from db_views.
* Update crates/db_schema/src/newtypes.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Adding an action_utils.
* Avoiding inner joins for up.sql
* Adding person_aggregates.published column.
* Remove unused private message view.
* Implementing Selectable for DB views, moving joins inside impl.
* Adding a few more.
* Fixing imports.
* fmt.
* Post view.
* Comment view.
* Inbox combined view.
* Modlog combined view.
* The rest of the combined tables.
* Finishing up.
* Fixing shear.
* Fixing cargo.toml.
* Use 1.81 image.
* Fix api common.
* Fixing merge issues.
---------
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Version 0.20.0-alpha.0
* lint
* fix braces
---------
Co-authored-by: James Hoffman <purpledungeoncrab@protonmail.com>
Co-authored-by: flamingos-cant <45780476+flamingo-cant-draw@users.noreply.github.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
Co-authored-by: Dessalines <tyhou13@gmx.com>
Co-authored-by: andrewmoise <andrew.moise@gmail.com>
2025-02-05 08:53:40 -05:00
Dessalines
f7ab9cebd5
Version 0.20.0-alpha.5
2025-02-04 11:17:09 -05:00
Dessalines
8be60a4418
Removing upx. ( #5388 )
2025-02-04 11:15:27 -05:00
Dessalines
a56105022a
Version 0.20.0-alpha.4
2025-02-04 10:36:32 -05:00
Dessalines
596b4f19d5
Trying to fix upx again. ( #5387 )
2025-02-04 10:32:55 -05:00
Nutomic
e31823171c
Include saved date in api responses ( fixes #5184 ) ( #5384 )
...
* Include saved date in api responses (fixes #5184 )
* ts optional attr
2025-02-04 10:14:37 -05:00