dullbananas
046375171e
Don't change encoding style in clean_url_params
( #4802 )
...
* Don't change encoding style in `clean_url_params`
Fixes #4801
* fmt
* fix
2024-06-12 20:35:27 -04:00
dullbananas
b559e0206b
Replace wav with hound ( #4788 )
...
* Update lib.rs
* Update Cargo.toml
* Update lib.rs
* cargo.lock
* fix simultaneous mutable references
2024-06-07 10:27:49 -04:00
dullbananas
1e11faf741
Improve comment in triggers.sql ( #4789 )
...
* Clarified existing info
* Added prohibition of inconsistent update order
2024-06-07 07:42:34 -04:00
3d25322089
Version 0.19.4-rc.9
2024-06-06 10:43:40 -04:00
Dessalines
16a82862b8
Allow empty string to clear URL-type DB fields. ( #4780 )
...
* Allow empty string to clear URL-type DB fields.
- To address difficulties with clearing URL-type fields like
avatars, banners, site icons, this PR turns the URL type form
fields into strings.
- This allows an empty string to be used as a "clear data", as
in the case with the regular text form fields.
- Also includes various cleanups.
- Fixes #4777
- Context: #2287
* Fixing comment.
* Use Option<&str> and deref.
---------
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-06-06 09:55:08 -04:00
dullbananas
79e6dbf0de
Remove PersonInsertForm builder ( #4779 )
...
* Update session_middleware.rs
* Update private_message_report_view.rs
* Update session_middleware.rs
* Update private_message_view.rs
* Update private_message.rs
* Update registration_application_view.rs
* Update actor_language.rs
* Update vote_view.rs
* Update code_migrations.rs
* Update comment_aggregates.rs
* Update person_view.rs
* Update user_settings_backup.rs
* Update person.rs
* Update create.rs
* Update comment_view.rs
* Update moderator.rs
* Update site_aggregates.rs
* Update claims.rs
* Update community_aggregates.rs
* Update post_report.rs
* Update person_mention_view.rs
* Update community_view.rs
* Update comment_report_view.rs
* Update post_report_view.rs
* Update community_moderators.rs
* Update comment.rs
* Update person_aggregates.rs
* Update comment_reply_view.rs
* Update password_reset_request.rs
* Update post_aggregates.rs
* Update community.rs
* Update main.rs
* Update post.rs
* Update person.rs
* Update person.rs
* Update claims.rs
* Update person.rs
* Update create.rs
* Update user_settings_backup.rs
* Update community_moderators.rs
* Update main.rs
* Update comment_aggregates.rs
* Update community_aggregates.rs
* Update person.rs
* Update Cargo.toml
* Update Cargo.toml
* Update person.rs
* fix
* Update code_migrations.rs
* fix submodule
* Update person.rs
2024-06-06 08:29:18 -04:00
Dessalines
e8cfb5665f
When banning from local communities, make sure they aren't deleted or removed. ( #4784 )
...
- This is causing some federation issues.
- Context: #4782
2024-06-05 18:59:46 -04:00
92214a9364
Version 0.19.4-rc.7
2024-06-05 17:30:43 -04:00
Dessalines
8bf17946bd
Fix issue with avatar / icon deletion when saving settings. ( #4774 )
...
* Fix issue with avatar / icon deletion when saving settings.
- Fixes #4763
* Update crates/api_common/src/request.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Fixing an existing test, and adding another for replace images.
---------
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
2024-06-04 08:28:22 -04:00
Dessalines
aefb41b551
Remove .json from nodeinfo urls, according to spec. ( #4773 )
2024-06-03 17:30:16 -04:00
Dessalines
4195a9b5a1
Fetch nodeinfo href from .well-known/nodeinfo . Fixes #4757 ( #4765 )
...
* Fetch nodeinfo href from .well-known/nodeinfo . Fixes #4757
* Addressing PR comments.
* Fixing clippy.
* Adding tests.
2024-06-03 17:30:00 -04:00
69b4c6647b
Version 0.19.4-rc.5
2024-06-01 13:30:00 -04:00
Dessalines
6a6c915014
Changing NodeInfo metadata to HashMap from vector. Fixes #4762 ( #4764 )
2024-05-31 16:38:46 -04:00
phiresky
e8a7bb07a3
fix both permanent stopping of federation queues and multiple creation of the same federation queues ( #4754 )
...
Co-authored-by: Nutomic <me@nutomic.com>
2024-05-30 05:08:27 -04:00
Richard Schwab
91e57ff954
Prevent bot replies from increasing unread reply count when bot accounts are not shown ( #4747 )
...
* Prevent bot replies from increasing unread reply count when bot accounts are not shown
* Pass LocalUser for unread replies count query
* Prevent bot mentions from increasing unread reply count when bot accounts are not shown
2024-05-29 17:55:15 -04:00
phiresky
7d80a3c7d6
replace instanceid with domain ( #4753 )
2024-05-29 23:10:25 +02:00
Dessalines
abcfa266af
Fixing slowness in saved post fetching. #4756 ( #4758 )
...
* Fixing slowness in saved post fetching. #4756
* Also fix comment_view.rs
2024-05-29 17:03:42 -04:00
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
fd6a1283a5
Version 0.19.4-rc.3
2024-05-27 09:37:58 -04:00
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
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
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
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
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
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
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
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
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
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
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
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
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
08ae13b877
refactor
2024-05-11 17:55:36 +00:00
cb80980027
Version 0.19.4-beta.7
2024-05-11 13:51:09 -04:00
Dull Bananas
402ab1414f
fmt
2024-05-11 15:32:00 +00:00
Dull Bananas
e8e354c9b2
finish new implementation of schema_setup::run (not including revert, test, etc.)
2024-05-11 03:36:49 +00:00
dullbananas
c4fc3a8ede
Optimize stuff in attempt to fix high amount of locks, and fix comment_aggregates.child_count ( #4696 )
...
* separate triggers
* auto_explain.log_triggers=on
* Revert "auto_explain.log_triggers=on"
This reverts commit 078b2dbb9b
.
* Revert "separate triggers"
This reverts commit 95600da4af
.
* bring back migration
* re-order statements
* add comment about statement ordering
* no redundant updates
* optimize post_aggregates update in comment trigger
* set comment path in trigger
* update comment_aggregates.child_count using trigger
* move `LEFT JOIN post` to inner query
* clean up newest_comment_time_necro
* add down.sql
2024-05-09 08:18:55 -04:00
Dull Bananas
1aab92cbfa
Merge remote-tracking branch 'upstream/main' into migration-runner
2024-05-09 02:39:01 +00:00
866d752a3c
Instance.preferred_username should be optional ( fixes #4701 ) ( #4713 )
2024-05-08 08:01:04 -04:00
e0b1d0553d
Add timeout for processing incoming activities ( #4708 )
...
* Add timeout for processing incoming activities
* move to const
2024-05-08 08:00:55 -04:00
7c146272c3
Federate with wordpress, improvements for NodeBB, Discourse federation ( #4692 )
...
* Federate with wordpress
* upgrade apub lib with fix
* Also read post's community from `audience`
* cleanup
* cargo update
* upgrade apub lib
* add wordpress test activity
2024-05-07 16:20:43 -04:00
cfdc732d3a
On registration set show_nsfw based on site.content_warning ( #4616 )
...
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-05-07 16:18:58 -04:00
Dull Bananas
691bce0e71
stuff
2024-05-04 14:00:39 +00:00
SleeplessOne1917
b152be7951
Update rustls ( #4690 )
...
* Update rustls
* Format code
2024-05-03 16:06:14 -04:00
SleeplessOne1917
485b0f1a54
Replace unmaintained encoding dep with maintained encoding_rs dep ( #4694 )
...
* Replace dependency on unmaintained encoding crate with dep on maintained encoding_rs crate
* Update lockfile
* Taplo format Cargo.toml
* Use better variable name
* Replace into_owned with into
2024-05-03 10:42:48 +00:00
7746db4169
Testing and minor fix for federation with Discourse ( #4628 )
...
* Testing and minor fix for federation with Discourse
* prettier
2024-05-02 07:49:19 -04:00
Dessalines
2fecb7ecdf
Dont show own comments for liked and disliked_only. Fixes #4675 ( #4679 )
...
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-04-30 23:26:55 -04:00