Commit graph

414 commits

Author SHA1 Message Date
dullbananas a242333701
fix strip_prefix order 2024-05-28 06:57:32 -07:00
dullbananas b17634034f
rerun ci 2024-05-28 06:18:39 -07:00
dullbananas 45562bfb88
rerun ci 2024-05-27 21:03:28 -07:00
dullbananas ce1cf3efde
fix 2024-05-27 20:43:42 -07:00
dullbananas 0b8790ce1d
Merge branch 'main' into migration-runner 2024-05-27 20:24:33 -07:00
dullbananas 3daa0d6a21
fmt 2024-05-27 20:22:16 -07:00
dullbananas d592e0f416
re-attempt checking character after skipped trigger name, and make code less confusing 2024-05-27 20:18:10 -07:00
Dull Bananas 1a18350aca fmt 2024-05-27 23:36:49 +00:00
Dull Bananas b6102dcbf2 fix 2024-05-27 23:35:43 +00:00
dullbananas 120be51ace
exclude views and fast tables 2024-05-27 15:26:58 -07:00
Nutomic af034f3b5e
Unit tests and cleanup for outgoing federation code (#4733)
* test setup

* code cleanup

* cleanup

* move stats to own file

* basic test working

* cleanup

* processes test

* more test cases

* fmt

* add file

* add assert

* error handling

* fmt

* use instance id instead of domain for stats channel
2024-05-27 09:34:58 -04:00
dullbananas db856efcdb
Merge branch 'main' into migration-runner 2024-05-23 15:39:26 -07:00
dullbananas 56e22b032b
Update diff_check.rs 2024-05-23 14:48:15 -07:00
dullbananas d57d29392e
try to fix env var 2024-05-23 14:11:58 -07:00
Nutomic d8dc38eb06
Upgrade dependencies (#4740) 2024-05-23 10:55:20 -04:00
dullbananas 0a02ceb294
fmt 2024-05-23 06:48:51 -07:00
dullbananas 3f3b8e31ca
fmt 2024-05-23 06:48:05 -07:00
dullbananas 833a25012c
Merge branch 'main' into migration-runner 2024-05-23 06:45:47 -07:00
dullbananas 64827a11fb
re-run ci 2024-05-23 06:44:09 -07:00
Nutomic c96017c009
Configure max comment width in clippy (#4738)
* Configure max comment width in clippy

* update default config
2024-05-23 08:46:26 -04:00
dullbananas f0b2f0d1e4
Update diff_check.rs 2024-05-22 14:31:55 -07:00
dullbananas e5bc0bba4b
clippy 2024-05-22 14:23:43 -07:00
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
Dull Bananas d71cfaa503 stuff 2024-05-22 20:34:35 +00: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
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
Nutomic 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 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 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