Commit graph

5011 commits

Author SHA1 Message Date
Dessalines 0d5db29bc9
After creating a comment, update the unread comments for the post. (#4742)
* After creating a comment, update the unread comments for the post.

- Fixes #3863

* Addressing PR comments.

* Add comment.

---------

Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-05-27 12:55:44 +02:00
dullbananas c694da9ca4
clippy 2024-05-26 18:54:44 -07:00
dullbananas d82bfccc5b
Remove condition that's not needed anymore 2024-05-25 19:33:51 -07: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
dullbananas 1a7189787d
Update .woodpecker.yml 2024-05-23 13:05:57 -07:00
dullbananas 1e56bdef4d
Update .woodpecker.yml 2024-05-23 12:23:24 -07:00
dullbananas f9af3dec38
Update .woodpecker.yml 2024-05-23 11:58:37 -07:00
dullbananas f252de1a6c
Update .woodpecker.yml 2024-05-23 11:57:28 -07:00
dullbananas 728b6d49d7
create separate database in ci 2024-05-23 11:52:15 -07:00
dullbananas 0f373563b2
Update .woodpecker.yml 2024-05-23 11:27:18 -07:00
dullbananas ec77c00ef8
Fix lost separation caused by comment width change (#4739)
* Update post_view.rs

* Update structs.rs

* Update worker.rs

* Update worker.rs
2024-05-23 14:05:35 -04:00
dullbananas de1c688ba6
Update .woodpecker.yml 2024-05-23 10:11:08 -07:00
Dessalines 69bdcb3069 Version 0.19.4-rc.2 2024-05-23 12:10:33 -04:00
Dessalines 6a6108ac55
Fixing proxied images for federated posts. (#4737)
* Fixing proxied images for federated posts.

- Also added test.
- Fixes #4736

* Address PR comments.
2024-05-23 11:11:25 -04:00
Nutomic b2c1a14234
Correct url for nodeinfo version (#4734)
* Correct url for nodeinfo version

* add compat redirect

---------

Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-05-23 10:59:56 -04: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 0969fd3ab5
Update lib.rs 2024-05-22 19:16:32 -07:00
dullbananas 132877c833
Update .woodpecker.yml 2024-05-22 19:15:27 -07:00
dullbananas 6f6a5c9070
Update .woodpecker.yml 2024-05-22 18:44:58 -07:00
dullbananas 7f550e1066
Update lib.rs 2024-05-22 17:45:04 -07:00
dullbananas ab8c7d8289
Update lib.rs 2024-05-22 16:31:35 -07:00
dullbananas 0443bcda96
Update lib.rs 2024-05-22 15:31:54 -07:00
dullbananas d2f772a496
Update .woodpecker.yml 2024-05-22 14:57:55 -07: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
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
Dessalines 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
Nutomic 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
Nutomic 973f39601c
Dont allow removing comment which was deleted (fixes #4731) (#4732) 2024-05-22 08:29:01 -04:00
Felix Ableitner 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
Nutomic 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
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