phiresky
bef7190b56
allow out of order receives in test
2024-07-11 15:33:46 +02:00
phiresky
dd9c89e4ef
different data every time so activities are distinguishable
2024-07-11 00:54:38 +02:00
phiresky
a40fea3e76
fix send 100 test
2024-07-10 16:52:57 +02:00
phiresky
40b3c1a24d
add test to federate 100 events
2024-07-09 23:58:08 +02:00
phiresky
c2dab71377
Merge remote-tracking branch 'origin/main' into federation-send-parallel
2024-07-09 18:19:22 +02:00
Dessalines
32cee9cbca
Fixing not being able to create comments on local community posts. ( #4854 )
...
* Fixing not being able to create comments on local community posts.
- This was caused by not passing my_person_id into various
`CommentView::read` functions.
- Fixes #4853
* Refactoring views to use local_user, rather than person
* Addressing PR comments.
* Fixing API tests.
2024-07-07 12:28:42 -04:00
dullbananas
78702b59fd
Use trigger to generate apub URL in insert instead of update, and fix query planner options not being set when TLS is disabled ( #4797 )
...
* Update create.rs
* Update utils.rs
* Update utils.sql
* Update triggers.sql
* Update utils.sql
* Update create.rs
* Update create.rs
* Update create.rs
* Update create.rs
* Update create.rs
* Update create.rs
* Update create.rs
* Update create.rs
* Create up.sql
* Update up.sql
* Update triggers.sql
* Update utils.rs
* stuff
* stuff
* revert some changed files
* Revert "revert some changed files"
This reverts commit 028eabb4bd
.
* revert the correct files
* partial reverts
* migration, tests, fix establish_connection
* lint
* pg_format
2024-07-02 11:23:21 -04:00
dullbananas
fd58b4f809
Exponential controversy rank ( #4872 )
...
* Update utils.sql
* add migration
2024-07-02 09:40:18 -04:00
Dessalines
a7c39226e2
Remove unused PersonBlockId. ( #4880 )
...
- Fixes #4879
2024-07-02 09:39:37 -04:00
phiresky
0f5b69cffc
ci fix
2024-06-29 19:29:35 +02:00
phiresky
76c6487390
federation tests: ensure server stop after test and random activity id
2024-06-29 19:21:15 +02:00
phiresky
e3fef895a1
add debug to make localhost urls not valid in ap crate, add some debug logs
2024-06-25 17:13:44 +02:00
phiresky
2e2345e6f7
Merge remote-tracking branch 'origin/main' into federation-send-parallel
2024-06-24 16:35:57 +02:00
Dessalines
d09854a722
Adding a show_read override to GetPosts. ( #4846 )
...
* Adding a show_read override to GetPosts.
- If show_read is true, it overrides the local user show_read
setting.
- Fixes #4124
* Addressing PR comments.
* Update crates/db_views/src/post_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Fixing formatting.
---------
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
2024-06-21 17:39:40 -04:00
dullbananas
36e6f7ec78
Fix order in CommunityModeratorView::get_community_first_mods
( #4859 )
...
* Fix order in `CommunityModeratorView::get_community_first_mods`
* Update community_moderator_view.rs
* Update community_moderator_view.rs
2024-06-21 13:44:55 -04:00
Dessalines
6d8d23130d
Adding an image_details table to store image dimensions. ( #4704 )
...
* 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.
* Running prettier.
* A few more fixes.
* Moving diesel schema check back down.
* Addressing PR comments.
* Changing back request head to get.
* Fixing lockfile.
---------
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-06-20 12:44:06 +02:00
9cf6da1b9e
Version 0.19.5
2024-06-19 08:17:45 -04:00
Dessalines
63a824a2ed
Fixing TLS connection by installing provider. ( #4844 )
...
- Fixes #4795
2024-06-18 09:59:24 -04:00
bfefdfd15d
Version 0.19.5-alpha.2
2024-06-17 20:26:44 -04:00
dullbananas
42a6d8ab0f
Fix not-equals check in post aggregates update trigger ( #4837 )
...
* Fix not-equals check in post aggregates update trigger
Should fix #4836
* Create up.sql
* Create down.sql
* Update down.sql
2024-06-17 15:25:54 -04:00
5cc798a146
Version 0.19.5-alpha.1
2024-06-15 15:12:10 -04:00
dullbananas
6497ec519e
Refactor LocalUser settings conditions in database views ( #4746 )
...
* Create viewer.rs
* Rename viewer.rs to viewer.rs
* Update viewer.rs
* Update post_view.rs
* Update distinguish.rs
* Update like.rs
* Update viewer.rs
* Update list_comment_likes.rs
* Update like.rs
* Update save.rs
* Update like.rs
* revert changes in api crate
* Update post_view.rs
* Update post_view.rs
* Update comment_view.rs
* Update post_view.rs
* Update community_view.rs
* Update comment_view.rs
* Update post_view.rs
* Update viewer.rs
* Update post_view.rs
* Update community_view.rs
* Update local_user_view.rs
* Update viewer.rs
* Update community_view.rs
* Update viewer.rs
* Update lib.rs
* Update comment_view.rs
* Update post_view.rs
* Update viewer.rs
* Update viewer.rs
* Update viewer.rs
* Update viewer.rs
* Update local_user_view.rs
* Update viewer.rs
* Update viewer.rs
* Update local_user_view.rs
* Update community_view.rs
* Update viewer.rs
* Update crates/db_schema/src/viewer.rs
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
* Update viewer.rs
* Update viewer.rs
* Update viewer.rs
* Update viewer.rs
* Update post_view.rs
* Update community_view.rs
* Update comment_view.rs
* Update viewer.rs
* Update post_view.rs
* Update save.rs
* Update resolve_object.rs
* Update viewer.rs
* Update save.rs
* Update resolve_object.rs
* Update comment_view.rs
* Update post_view.rs
* Update community_view.rs
* Update local_user_view.rs
* Update post_view.rs
* Update viewer.rs
* Update comment_view.rs
* Update post_view.rs
* Update community_view.rs
* Update viewer.rs
* Update viewer.rs
* Update viewer.rs
* Update viewer.rs
* Update viewer.rs
* Some additions to localuser DB view helpers. (#39 )
* Some additions to localuser DB view helpers.
- Getting rid of generics.
- Passing in only LocalUser to views.
* Formatting fixes.
* Getting rid of unecessary as_refs
* Fixing clippy.
---------
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
Co-authored-by: Dessalines <tyhou13@gmx.com>
2024-06-14 21:51:24 -04:00
a3c8761bed
Revert "Remove unneeded error "last successful id is higher than latest id" ( fixes #4363 ) ( #4486 )" ( #4806 )
...
This reverts commit c895e57086
.
2024-06-14 08:15:12 -04:00
dullbananas
99160228ae
Remove unimplemented
in <Comment as Crud>::create
( #4796 )
...
* Remove `unimplemented` in `<Comment as Crud>::create`
* Update comment.rs
2024-06-14 10:40:57 +02:00
Dessalines
fc6f46c1ac
Fix issue with GetPost not returning bot cross_posts. ( #4804 )
...
- Fixes #4803
2024-06-13 14:32:03 -04:00
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
phiresky
2dd7b71590
Merge branch 'main' into federation-send-parallel
2024-06-04 02:07:22 +02: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
101901b8e0
fix clippy
2024-05-31 13:34:41 +02:00
phiresky
7ee63f4da8
run federation tests twice
2024-05-31 11:12:53 +02:00
phiresky
5538794d7c
move comment
2024-05-30 14:40:58 +02:00
phiresky
9d87921ebb
comment
2024-05-30 13:24:13 +02:00
phiresky
2acdc78d81
remove crashable, comment
2024-05-30 13:21:26 +02:00
phiresky
175133f0cd
comment about reverse ordering
2024-05-30 13:02:19 +02:00
phiresky
cdff275803
Update crates/federate/src/send.rs
...
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
2024-05-30 12:44:35 +02:00
phiresky
a0b0a7a0d9
lint fix
2024-05-30 12:38:17 +02:00
phiresky
ffb99cd036
Merge remote-tracking branch 'origin/main' into federation-send-parallel
2024-05-30 12:26:55 +02:00
phiresky
10d3b7d698
fix after merge
2024-05-30 12:23:37 +02: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