Commit graph

4829 commits

Author SHA1 Message Date
dullbananas
c7babd748a
fmt 2024-05-22 13:47:25 -07:00
dullbananas
7716c9e16d
fmt 2024-05-22 13:43:08 -07:00
dullbananas
f1142e0c72
Merge branch 'main' into migration-runner 2024-05-22 13:41:25 -07:00
dullbananas
cdbe77c9cf
Update lib.rs 2024-05-22 13:39:51 -07:00
Dull Bananas
d71cfaa503 stuff 2024-05-22 20:34:35 +00:00
9aa565b559 Version 0.19.4-rc.1 2024-05-22 08:58:31 -04:00
Dessalines
7d7cd8ded4
Dont show replies / mentions from blocked users. Fixes #4227 (#4727)
* Dont show replies / mentions from blocked users. Fixes #4227

* Adding unit tests for reply and mention views.

- Also cleaned up some unwraps in the tests.

* Add allow deprecated to pass clippy for deprecated wav crate.

---------

Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-05-22 08:50:26 -04:00
943c31cc72
Allow passing command line params via environment (fixes #4603) (#4729)
* Allow passing command line params via environment (fixes #4603)

* add prefix

---------

Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-05-22 08:39:01 -04:00
973f39601c
Dont allow removing comment which was deleted (fixes #4731) (#4732) 2024-05-22 08:29:01 -04:00
a39c19c9db Version 0.19.4-beta.8 2024-05-22 10:30:38 +02:00
Dessalines
55f84dd38a
Fixing proxy images (#4722)
* Adding an image_details table to store image dimensions.

- Adds an image_details table, which stores the height,
  width, and content_type for local and remote images.
- For LocalImages, this information already comes back with
  the upload.
- For RemoteImages, it calls the pictrs details endpoint.
- Fixed some issues with proxying non-image urls.
- Fixes #3328
- Also fixes #4703

* Running sql format.

* Running fmt.

* Don't fetch metadata in background for local API requests.

* Dont export remote_image table to typescript.

* Cleaning up validate.

* Dont proxy url.

* Fixing tests, fixing issue with federated thumbnails.

* Fix tests.

* Updating corepack, fixing issue.

* Refactoring image inserts to use transactions.

* Use select exists again.

* Fixing imports.

* Fix test.

* Removing pointless backgrounded metadata generation version.

* Removing public pictrs details route.

* Fixing clippy.

* Fixing proxy image fetching. Fixes #4703

- This extracts only the proxy image fixes from #4704, leaving off
  thumbnails.

* Fix test.

* Addressing PR comments.

* Address PR comments 2.

---------

Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-05-22 10:28:47 +02:00
Dull Bananas
5fca4ea918 Merge remote-tracking branch 'upstream/main' into migration-runner 2024-05-21 20:20:14 +00:00
Dull Bananas
4d427b2f0c use advisory lock 2024-05-21 20:19:34 +00:00
Dull Bananas
cf5afc9fb3 stuff 2024-05-21 19:38:11 +00:00
6b46a70535
Extra logging to debug duplicate activities (ref #4609) (#4726)
* Extra logging to debug duplicate activities (ref #4609)

* Fix logging for api tests

* fmt
2024-05-21 14:47:06 -04:00
4ffaa93431
Dont allow reusing password reset token, use normal rate limit (#4719)
* Dont allow reusing password reset token, use normal rate limit

* fix
2024-05-21 14:46:49 -04:00
Dull Bananas
6eb8d046fa finish fixing migrations 2024-05-20 21:21:48 +00:00
Dull Bananas
5596cb79cb improve diff check 2024-05-20 21:15:08 +00:00
Dull Bananas
9a528fb38a Revert "attempt parallel pg_dump"
This reverts commit 592a127954.
2024-05-20 19:35:55 +00:00
Dull Bananas
47a4c35d8f Revert "attempt 2"
This reverts commit a909d2d643.
2024-05-20 19:35:50 +00:00
Dull Bananas
a909d2d643 attempt 2 2024-05-20 19:35:42 +00:00
Dull Bananas
592a127954 attempt parallel pg_dump 2024-05-20 18:30:21 +00:00
Dull Bananas
ced9bb5216 stuff 2024-05-20 02:23:56 +00:00
Dull Bananas
7977ee166a improve diff 2024-05-19 05:19:07 +00:00
Dull Bananas
06b01ffecf stuff 2024-05-19 04:49:30 +00:00
Dull Bananas
80ca94e176 remove fedi_name default 2024-05-18 22:44:04 +00:00
Dull Bananas
314e744594 ignore column order 2024-05-18 22:38:45 +00:00
Dull Bananas
d18c2c9cf3 timestamp replacement 2024-05-18 21:56:04 +00:00
Dull Bananas
84bf57e1b0 improve schema diff 2024-05-18 18:05:11 +00:00
Dull Bananas
1692fd62b4 diff check 2024-05-18 16:14:55 +00:00
Dull Bananas
8e0bbd61eb Revert "Revert "diff_checker (partial)""
This reverts commit d4bdda5d11.
2024-05-17 21:21:57 +00:00
Dull Bananas
d4bdda5d11 Revert "diff_checker (partial)"
This reverts commit 6709882e14.
2024-05-17 21:21:25 +00:00
Dull Bananas
6709882e14 diff_checker (partial) 2024-05-17 21:21:19 +00:00
Dull Bananas
16dcbc7a99 fix merge 2024-05-17 20:31:40 +00:00
Dull Bananas
1af517f6c4 Merge remote-tracking branch 'upstream/main' into migration-runner 2024-05-17 20:28:03 +00:00
Dull Bananas
5d8af0d476 fix 2024-05-17 20:21:13 +00:00
flamingos-cant
a0ad7806cb
Increase alt_text size to 1500 (#4724) 2024-05-17 13:03:19 -04:00
99aac07714
Mark database fields as sensitive so they dont show up in logs (#4720)
* Mark database fields as sensitive so they dont show up in logs

* add file

* fix test

* Update crates/apub/src/objects/person.rs

Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>

* Update crates/apub/src/objects/community.rs

Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>

* Update crates/apub/src/objects/instance.rs

Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>

---------

Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2024-05-16 20:41:57 -04:00
Dessalines
1a4aa3eaba
Stop using a diesel_cli docker image, use cargo-install in woodpecker. (#4723)
* Stop using a diesel_cli docker image, use cargo-binstall in woodpecker.

- The diesel_cli image is 500MB, and rebuilt daily. Much easier to use
  binstall to install it.

* Trying out a multiline var.

* Try sequence merges 1

* Try removing features.

* Try path fix.

* Abstracting diesel cli install.

* Try installing mysql and postgres.

* Try installing mysql and postgres 2.

* Try installing mysql and postgres 3.

* Try installing mysql and postgres 4.

* Try installing mysql and postgres 5.

* Try installing mysql and postgres 6.

* Try installing mysql and postgres 7.

* Try installing mysql and postgres 8.

* Try installing mysql and postgres 9.

* Try installing mysql and postgres 10.

* Try installing mysql and postgres 11.

* Try installing mysql and postgres 12.

* Try installing mysql and postgres 13.

* Add logging line.

* Add logging line 2.

* Add logging line 3.

* Add logging line 4.

* Removing binstall.

* Extract taplo into its own image, ignore binstall.

* Use a smaller taplo.

* taplo is the same image.
2024-05-16 16:41:36 -04:00
93c9a5f2b1
Dont federate post locking via Update activity (#4717)
* Dont federate post locking via Update activity

* cleanup

* add missing mod log entries

* update assets
2024-05-15 07:36:00 -04:00
9a9d518153
Fix import blocked objects (#4712)
* Allow importing partial backup (fixes #4672)

* Fetch blocked objects if not known locally (fixes #4669)

* extract helper fn

* add comment

* cleanup

* remove test

* fmt

* remove .ok()
2024-05-14 23:03:43 -04:00
7fb03c502e
Add test to ensure reports are sent to user's home instance (ref #4701) (#4711)
* Add test to ensure reports are sent to user's home instance (ref #4701)

* enable all tests

* set package-manager-strict=false
2024-05-14 22:48:24 -04:00
49bb17b583
Stricter rate limit for login (#4718) 2024-05-14 22:43:43 -04:00
723cb549d4
Allow importing partial backup (fixes #4672) (#4705)
* Allow importing partial backup (fixes #4672)

* Dont throw error on empty LocalUser::update

* fix tests
2024-05-14 22:37:30 -04:00
8b6a4c060e
Make nodeinfo standard compliant, upgrade to nodeinfo 2.1 (fixes #4702) (#4706)
* Always set activitypub protocol in nodeinfo response (fixes #4702)

* Add mandatory fields
2024-05-13 22:53:20 -04:00
Dull Bananas
614e0e59d1 rename to enable_forbid_diesel_cli_trigger 2024-05-13 02:52:27 +00:00
Dull Bananas
27b289c339 add Options with disable_migrations field for test 2024-05-13 02:51:05 +00:00
Dull Bananas
22ac8c5bfc use trigger on migrations table 2024-05-12 22:10:31 +00:00
Dull Bananas
d0d8139ff0 migriation run command 2024-05-11 20:45:27 +00:00
Dull Bananas
542f81d4f1 fix sql 2024-05-11 19:37:55 +00:00