Dessalines
5fa6a490d5
Create actions structs ( #5482 )
...
* migration
* update code
* tests
* triggers
* fix
* fmt
* clippy
* post aggregate migration
* changes for post aggregate code
* wip: update tests for post aggregate
* format
* fix partialeq
* trigger fix
* fix post insert trigger
* wip
* reorder
* fixes
* community aggregate migration
* update code
* triggers
* person aggregate migration
* person aggregate code
* person triggers
* test fixes
* fix scheduled task
* update api tests
* site_aggregates to local_site migration
* site_aggregates code changes
* triggers, tests
* more fixes
* Rename PersonPostAggregates to PostActions
* Merge local_user_vote_display_mode into local_user
* fix schema
* remove duplicate fields
* remove "aggregates" from index names
* uncomment indices
* if count = 0
* remove commentaggregates
* Fix triggers in remove aggregates tables pr (#5451 )
* prevent all db_schema test errors
* fix the delete_comments_before_post problem in a way that doesn't affect the returned number of affected rows
* remove unnecessary recursion checks and add comment to remaining check
* clean up
* Fixing SQL format.
* Update triggers.sql
* Update triggers.sql
* Update triggers.sql
* Update triggers.sql
* remove update of deleted column
---------
Co-authored-by: Dessalines <tyhou13@gmx.com>
* rename migration
* Fix migration errors
* Move community.hidden to visibility (fixes #5458 )
* Fixing person_saved_combined. (#5481 )
* Remove comment and post specific action structs. #5473
* Doing reports
* fix up migration by dropping index
* also add enum variant `LocalOnlyPublic`, rename `LocalOnly` to `LocalOnlyPrivate`
fixes #5351
* fix column order in down.sql
* wip
* Moving blocks.
* Adding a few more views.
* more wip
* fixes
* migration for modlog
* fix migration
* Working views and schema.
* Fix ts_optionals.
* wip
* db_schema compiling
* make the code compile
* Merging from main.
* lint
* Fixing SQL format.
* fix down migration
* Fixing api tests.
* Adding field comments for the actions tables.
* Refactoring CommunityFollower to include follow_state
* fix test
* make hidden status federate
* ts attr
* fix
* fix api test
* Update crates/api/src/reports/post_report/resolve.rs
Co-authored-by: Nutomic <me@nutomic.com>
* Addressing PR comments
* Fix ts export.
* update api client
* review
* Extracting filter_not_hidden_or_is_subscribed (#5497 )
* Extracting filter_not_hidden_or_is_subscribed
* Cleanup.
* Cleanup 2.
* Remove follower_state_helper function.
* Cleaning up some utils functions.
* rename hidden to unlisted
---------
Co-authored-by: Felix Ableitner <me@nutomic.com>
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
2025-03-12 11:51:34 -04:00
Nutomic
8ffeeca52d
Changes to community visibility ( #5478 )
...
* Move community.hidden to visibility (fixes #5458 )
* fix up migration by dropping index
* also add enum variant `LocalOnlyPublic`, rename `LocalOnly` to `LocalOnlyPrivate`
fixes #5351
* fix column order in down.sql
* wip
* more wip
* fixes
* migration for modlog
* fix migration
* wip
* db_schema compiling
* make the code compile
* lint
* fix down migration
* fix test
* make hidden status federate
* ts attr
* fix
* fix api test
* update api client
* review
* Extracting filter_not_hidden_or_is_subscribed (#5497 )
* Extracting filter_not_hidden_or_is_subscribed
* Cleanup.
* Cleanup 2.
* rename hidden to unlisted
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2025-03-12 09:45:02 -04:00
Nutomic
96e4621cb8
Dont force enable undetermined language anymore ( fixes #5487 ) ( #5491 )
...
* Dont force enable undetermined language anymore (fixes #5487 )
* fix test
2025-03-10 11:52:35 -04:00
Nutomic
9a64902ace
Remove aggregate tables ( fixes #4869 ) ( #5407 )
...
* migration
* update code
* tests
* triggers
* fix
* fmt
* clippy
* post aggregate migration
* changes for post aggregate code
* wip: update tests for post aggregate
* format
* fix partialeq
* trigger fix
* fix post insert trigger
* wip
* reorder
* fixes
* community aggregate migration
* update code
* triggers
* person aggregate migration
* person aggregate code
* person triggers
* test fixes
* fix scheduled task
* update api tests
* site_aggregates to local_site migration
* site_aggregates code changes
* triggers, tests
* more fixes
* Rename PersonPostAggregates to PostActions
* Merge local_user_vote_display_mode into local_user
* fix schema
* remove duplicate fields
* remove "aggregates" from index names
* uncomment indices
* if count = 0
* remove commentaggregates
* Fix triggers in remove aggregates tables pr (#5451 )
* prevent all db_schema test errors
* fix the delete_comments_before_post problem in a way that doesn't affect the returned number of affected rows
* remove unnecessary recursion checks and add comment to remaining check
* clean up
* Fixing SQL format.
* Update triggers.sql
* Update triggers.sql
* Update triggers.sql
* Update triggers.sql
* remove update of deleted column
---------
Co-authored-by: Dessalines <tyhou13@gmx.com>
* rename migration
* Fix migration errors
* Fixing person_saved_combined. (#5481 )
---------
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
Co-authored-by: Dessalines <tyhou13@gmx.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2025-03-06 16:18:41 +01: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
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
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
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
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
Nutomic
56ed92ca92
Fix hash check for pictrs binary ( #5411 )
2025-02-10 14:22:24 -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
Nutomic
5fcf166a89
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>
2025-02-03 18:52:22 -05:00
Dessalines
52047459bb
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>
2025-01-27 22:58:19 -05:00
Nutomic
4e46332bf4
Hash check and retry for pictrs binary ( #5345 )
...
* Hash check and retry for pictrs binary
* retry limit
2025-01-23 08:05:47 -05:00
Nutomic
af71cc55ab
Skip api test for community follower count ( fixes #5179 ) ( #5339 )
2025-01-22 12:18:03 +01:00
Dessalines
3f06317878
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>
2025-01-15 12:51:39 -05:00
Nutomic
5bc3f0c4d9
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>
2025-01-15 11:28:43 -05:00
Dessalines
c68473c122
Upgrading deps. ( #5326 )
...
* Upgrading deps.
* Upgrading a few more.
* A few more
2025-01-15 10:10:12 +01:00
Dessalines
9c1347c7a0
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>
2025-01-14 15:14:58 +01:00
Nutomic
a91a03a536
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>
2025-01-13 16:09:00 -05:00
Dessalines
cc190aefdf
Use codeberg pictrs mirror to fix CI. ( #5286 )
2024-12-24 14:24:12 -05:00
Dessalines
9d3a0cef56
Adding report_combined
table. ( #5231 )
...
* 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.
* Fixing api tests.
* 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.
* Addressing PR comments.
* Removing serialization
---------
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
2024-12-19 17:22:31 -05:00
Nutomic
6a9f924d20
More test coverage for user deletion ( #5259 )
2024-12-12 10:03:55 -05:00
Nutomic
5e7b30ac6a
Reorganize api endpoints ( fixes #2022 ) ( #5216 )
...
* Reorganize api endpoints (fixes #2022 )
* scopes
* move message rate limit
* move rate limit
* apply suggestions
* move my_user to separate endpoint
* remove taglines and custom emojis from siteview
* routes for api v3 and v4
* remove new features from api v3
* js client
* replace occurences of `v3`, fix routes
* replace getSite().my_user with getMyUser()
* update
* update config
* remove web::
* update
* prettier
* lockfile
* v
* fix settings
* move block endpoints
* more changes
* fmt
* update
* change some routes
* lockfile
* Add comment about deprecation
2024-12-07 14:06:33 -07:00
Nutomic
f065215e74
Add test cases for community with non-ascii name (ref #5239 ) ( #5246 )
...
* Add test cases for community with non-ascii name (ref #5239 )
* fmt
* Update run-federation-test.sh
2024-12-03 12:19:01 -05:00
Nutomic
dcf1cfca9b
Return content of removed comments for admins (ref #5232 ) ( #5245 )
...
* Return content of removed comments for admins (ref #5232 )
* fmt
* remove dbg
2024-12-02 17:06:39 -05:00
Nutomic
66a63df152
Instance blocks with mod log entry and expiration ( fixes #2506 ) ( #5214 )
...
* Instance blocks with mod log entry and expiration (fixes #2506 )
* separate table for instance block mod log
* fix tests
* fix ts
* modlog entry for allow instance
* fix test cleanup
* add back test
* clippy
* fix check
* more changes
* move files
* update
* sql fmt
* partly working
* fix setup
* cleanup
* fixes
* prettier
* try catch
* address comments
2024-11-28 18:21:43 -05:00
Nutomic
f6de3b0388
Enable site languages for new user ( fixes #5234 ) ( #5235 )
...
* Enable site languages for new user (fixes #5234 )
* test coverage
2024-11-28 18:03:14 -05:00
Nutomic
bb26a701bc
Proxy pictrs healthz endpoint ( #5224 )
2024-11-25 11:43:34 -05:00
Nutomic
b8dda06f5b
More test coverage for private community, fix some bugs ( #5207 )
...
* More test coverage for private community, fix some bugs
* fmt
* stuff
* attempted fix
* fix tests
* api tests passing
* fix tests
* apub lib
2024-11-22 10:49:56 -05:00
Dessalines
c4d864878f
Change "mark post as read", "hide post" api calls to take single post instead of multiple ( #5043 )
...
* Removing a few SuccessResponses for PostHide and MarkPostAsRead.
- This also removes the pointless multiple post_ids. These can be done
as individual calls on the front end anyway.
- Fixes #4755
* Fixing federation tests.
* Upgrading lemmy-js-client deps.
* Simplifying forms.
* Fixing forms.
* Removing indexing slicing from a test.
2024-11-13 09:36:18 -05:00
Nutomic
ad90cd77f9
Implement private communities ( #5076 )
...
* add private visibility
* filter private communities in post_view.rs
* also filter in comment_view
* community follower state
* remove unused method
* sql fmt
* add CommunityFollower.approved_by
* implement api endpoints
* api changes
* only admins can create private community for now
* add local api tests
* fix api tests
* follow remote private community
* use authorized fetch for content in private community
* federate community visibility
* dont mark content in private community as public
* expose ApprovalRequired in api
* also check content fetchable for outbox/featured
* address private community content to followers
* implement reject activity
* fix tests
* add files
* remove local api tests
* dont use delay
* is_new_instance
* single query for is_new_instance
* return subscribed type for pending follow
* working
* need to catch errors in waitUntil
* clippy
* fix query
* lint for unused async
* diesel.toml comment
* add comment
* avoid db reads
* rename approved_by to approver_id
* add helper
* form init
* list pending follows should return items for all communities
* clippy
* ci
* fix down migration
* fix api tests
* references
* rename
* run git diff
* ci
* fix schema check
* fix joins
* ci
* ci
* skip_serializing_none
* fix test
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2024-11-07 05:49:05 -05:00
Dessalines
a55e7fd9fe
Trying to use w3.org as a sample site to fix tests. ( #5170 )
...
- #5167
2024-11-06 10:20:30 -05:00
Dessalines
9f40387569
Fixing sample image to fix unit tests. ( #5167 )
...
Apparently yahoo.com doesnt want to return
metatags for my local CI runners anymore.
2024-11-05 11:45:58 -05:00
renovate[bot]
22e2290d7b
chore(deps): update npm ( #5153 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-31 22:47:04 -04:00
Nutomic
df07d8e31c
Skip api test for fetching nested comment ( #5152 )
2024-10-31 08:10:45 -04:00
Richard Schwab
920ffe1803
Allow admins to resolve removed or deleted objects via API ( #5061 )
...
* Allow admins to resolve removed or deleted objects via API
* Removing pointless TestUser.
---------
Co-authored-by: Dessalines <tyhou13@gmx.com>
2024-10-26 14:47:56 -04: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
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]
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]
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
Nutomic
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
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
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
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
Nutomic
a8843335a6
Simplify handling of NotFound SQL errors ( fixes #4633 ) ( #5031 )
...
* Simplify handling of NotFound SQL errors (fixes #4633 )
* fmt
* wip
* compiling
* clippy
* api tests
* fix
2024-09-23 11:26:50 -04:00
Dessalines
2b3fd70afd
Adding ability to restore content on user unban. ( #4845 )
...
* Adding ability to restore content on user unban.
- Fixes #4721
* Fixing api tests.
* Fix package.json
* Fixing lemmy-js-client dep.
* Adding API test for restoring content.
2024-09-18 09:11:42 -04:00
renovate[bot]
5683d5ed7a
chore(deps): update pnpm to v9.9.0 ( #4994 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-01 12:30:05 +00:00