dullbananas
6b1b29419d
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
2025-01-08 11:07:32 +01:00
Dessalines
3f3f983267
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.
2025-01-08 10:50:44 +01:00
9df10b3dc9
Remove unused param Create/EditSite.enable_nsfw
2025-01-08 10:28:01 +01:00
flamingos-cant
2a89179611
Add markdown-it-footnotes ( #5303 )
2025-01-07 13:16:30 -05:00
Dessalines
0bfbd74e59
Adding combined person content and person saved tables. ( #5251 )
...
* 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.
* Using dullbananas trigger procedure
* 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.
---------
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
2025-01-05 12:48:57 -05:00
41421991d6
Error handling for thumbnail generation (ref #5196 ) ( #5298 )
2025-01-03 14:09:24 -05:00
6de73f37ca
Rename variable
2025-01-03 15:57:02 +01:00
Dessalines
e9d27f2840
Don't send out new user email verifies to admins, if already verified. ( #5288 )
...
- Fixes #5272
2025-01-03 11:16:25 +01:00
leoseg
ba779b978f
New parameter read_only
for /api/v3/post/list ( #5264 )
...
* added option to get only read only posts with unittests
* formatted code
* added index on (person_id, read) on post actions where read is not null
* formatted sql
* Update migrations/2024-12-15-151642_add_index_on_person_id_read_for_read_only_post_actions/up.sql
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Fixxed error in down.sql for migration of index on (person_id,read_only,post_id) on post_actions
* Fixxed error in unittests
* Update crates/db_views/src/post_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
---------
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
2025-01-03 11:08:00 +01:00
Dessalines
c656465e28
Fix contradicting filters. ( #5281 )
2025-01-03 11:02:20 +01:00
anhcuky
c034229295
reset_password API to always return success ( #5284 )
2025-01-02 12:37:13 -05:00
dullbananas
b91790e29e
Fix incorrect comment in report_combined_view test ( #5297 )
2025-01-02 12:35:56 -05:00
renovate[bot]
9c473e8298
chore(deps): update rust crate chrono to v0.4.39 ( #5295 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-01 13:28:26 -05:00
dullbananas
b8556fa5cf
Shorten "options" variable name ( #5285 )
...
* comment view, post view
* do rename everywhere else
* fix person_view
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2025-01-01 12:52:20 -05:00
Dessalines
ffc3493abe
Applying some clippy fixes. ( #5292 )
2025-01-01 12:47:21 -05:00
renovate[bot]
39aace0c8f
chore(deps): update rust crate clap to v4.5.23 ( #5296 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-31 23:35:13 -05:00
renovate[bot]
34672ab21b
chore(deps): update rust crate anyhow to v1.0.95 ( #5294 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-31 21:16:18 -05:00
renovate[bot]
83bf60571e
chore(deps): update docker ( #5293 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-31 20:38:21 -05:00
Richard Schwab
f76322e3f5
Reduce false positives in URL blocklist to reduce scunthorpe problem by matching at word boundaries. ( #5282 )
...
This addresses an issue brought up on matrix where blocking rt.com resulted in links to deviantart.com getting blocked.
2024-12-27 12:53:23 -05:00
Dessalines
76034f058d
Cleaning up oauth providers conversion. ( #5280 )
...
* Cleaning up oauth providers conversion.
* Use into_iter
2024-12-27 12:52:05 -05:00
Dessalines
cc190aefdf
Use codeberg pictrs mirror to fix CI. ( #5286 )
2024-12-24 14:24:12 -05:00
7585aac446
Fix startup errors, add unit test for scheduled task errors ( fixes #5209 ) ( #5269 )
...
* Fix startup errors, add ci check (fixes #5209 )
* normal unit test
* cleanup
* shear
* remove serial
* migration
2024-12-20 19:21:09 -05:00
Dessalines
6015ef045d
Running cargo-features-manager prune. ( #5274 )
...
- Context #5273
2024-12-20 23:20:16 +01: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
Integral
8b78ddeb68
refactor: avoid using format! when String creation is unnecessary ( #5268 )
2024-12-19 15:42:01 -05:00
phiresky
a2a5cb091a
Community post tags (part 1) ( #4997 )
...
* partial post tags implementation
* fixes
* fix lints
* schema fix
* chore: restructure / rename tag tables
* chore: fix post view tests
* format
* lint
* expect used
* chore: update code to maybe final version
* add ts-rs optionals
* remove error context
* clippy
2024-12-18 14:54:35 +01:00
d346890b1f
Increase metadata fetch limit to 1 MB ( fixes #5208 ) ( #5266 )
2024-12-17 10:01:53 -05:00
8d91543a13
Allow admins to view deleted users ( fixes #5249 ) ( #5258 )
...
* Allow admins to view deleted users (fixes #5249 )
* remove check
2024-12-12 10:06:38 -05:00
6a9f924d20
More test coverage for user deletion ( #5259 )
2024-12-12 10:03:55 -05:00
2467a0af12
Consider remote instance as dead if it returns any status 4xx or 5xx ( #5256 )
...
* Consider remote instance as dead if it returns any status 4xx or 5xx (ref #3134 )
* remove dbg
2024-12-12 09:38:16 -05:00
8a5daeec97
Only accept database connection by uri ( #5254 )
...
* Only accept database connection by uri
* lint
* fix docker configs
2024-12-10 10:15:54 -05:00
Integral
9e17c517fe
refactor: replace static with const for global constants ( #5250 )
2024-12-09 10:31:07 +01:00
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
adadb45ace
Add comment about upgrading Rust version ( #5248 )
2024-12-04 08:30:42 -05:00
flamingos-cant
ff2bbf41ca
Use magic number to detemine file type ( #5225 )
...
* Revert "Guess image mime type from file extension (fixes #5196 ) (#5212 )"
This reverts commit 63ea99d38a
.
* Use magic numbers to determine file type.
* fmt
* Don't wrap response in an option
* Regen Cargo.lock
* Clean-up + guess mime type from extension if server is unresponsive
* Move some things about.
* Some cleanup.
* Removing comment lines.
---------
Co-authored-by: Dessalines <tyhou13@gmx.com>
2024-12-04 08:29:50 -05:00
Dessalines
f4cd569a98
Updating to rasky's lemmy-cross-toolchain v0.5.0 for rust 1.81 ( #5247 )
...
- Fixes #5159
2024-12-04 10:22:43 +01:00
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
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
Mikoto
9505d1d205
feat: add PKCE ( #5189 )
...
Co-authored-by: Nutomic <me@nutomic.com>
2024-12-02 16:47:03 -05:00
ba3e6b482b
Add note wrapper ( fixes #2657 ) ( #5221 ) ( #5236 )
...
* Add note wrapper (fixes #2657 ) (#5221 )
* Add note wrapper (fixes #2657 )
* fix activity list
* fmt
* add comment
* fix api tests
* backwards compat
* remove comment
* no todo, deprecated
* wip
* make it work
* fmt
* now really working
* fixes
* add comments
2024-12-02 05:28:23 -05:00
renovate[bot]
5085d1c3e3
Update Rust crate diesel-async to v0.5.2 ( #5243 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-30 20:14:07 -05:00
renovate[bot]
44f584b414
Update Rust crate diesel to v2.2.5 ( #5242 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-30 19:57:32 -05:00
Dessalines
e3fccb3f81
Fixing woodpecker secrets warning. ( #5237 )
2024-11-29 10:35:03 +01:00
3d7fbde091
Allow bypassing image proxy for specific domains ( #5223 )
...
* Allow bypassing proxy for some domains with ProxyAllImages
* remove web::
* remove expect
* bypass imgur by default
* correct imgur domain
* restore processing, cleanup
---------
Co-authored-by: sunaurus <sander@saarend.com>
2024-11-28 18:23:18 -05:00
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
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
5a403bc250
Revert " Add note wrapper ( fixes #2657 ) ( #5221 )"
...
This reverts commit 7304ef3261
.
2024-11-28 11:14:04 +01:00
7304ef3261
Add note wrapper ( fixes #2657 ) ( #5221 )
...
* Add note wrapper (fixes #2657 )
* fix activity list
* fmt
* add comment
* fix api tests
* backwards compat
* remove comment
* no todo, deprecated
2024-11-26 10:37:19 +01:00
Dessalines
7ee7b069af
Move up clippy and cargo test in CI. ( #5229 )
...
- Clippy is usually the most likely CI test to fail, and it currently
takes > 5m to reach it, wasting CPU resources.
2024-11-26 09:39:14 +01:00
c0d7d76570
Remove getrandom dependency ( #5226 )
...
* Remove getrandom dependency
* fix
2024-11-25 18:20:45 -05:00