df1be61bb4
use instance id instead of domain for stats channel
2024-05-24 10:37:22 +02:00
95b99fe4bc
Merge branch 'main' into federation-send-test
2024-05-23 16:59:05 +02:00
5caf532e5c
fmt
2024-05-23 16:57:35 +02:00
d8dc38eb06
Upgrade dependencies ( #4740 )
2024-05-23 10:55:20 -04:00
8baa5ee2f3
Merge branch 'main' into federation-send-test
2024-05-23 16:55:11 +02: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
00ceaa7992
error handling
2024-05-23 13:33:00 +02:00
b7cc908cb2
add assert
2024-05-23 13:13:17 +02:00
d4f26da00e
add file
2024-05-23 13:00:34 +02:00
0c487a65eb
fmt
2024-05-23 12:59:20 +02:00
5e1a98cc9f
more test cases
2024-05-23 12:56:14 +02:00
0096976b24
processes test
2024-05-23 12:32:34 +02:00
a56c3de124
cleanup
2024-05-23 11:40:58 +02:00
86d3550901
basic test working
2024-05-23 11:36:32 +02:00
76393bd964
move stats to own file
2024-05-23 11:17:37 +02:00
bc64644e60
cleanup
2024-05-23 11:04:29 +02:00
451d1fd24f
code cleanup
2024-05-22 13:40:20 +02:00
7e949fcd43
test setup
2024-05-22 12:30:22 +02: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
Dessalines
d075acce43
Make all single-fetch database calls return an Option. ( #4617 )
...
- Diesel ordinarily throws an error when no results are returned for a
single fetch, which is a bit confusing. This PR ensures that the
missing value cases are all caught, and wrapped with new LemmyErrors,
rather than diesel errors.
- Fixes #4601
2024-04-16 14:48:15 +02:00
1d0a6ac08f
Avoid breaking api change, reduce api cache duration ( #4610 )
...
* Dont mark site.public_key as `serde(skip)` to avoid breaking change (fixes #4605 )
* Reduce cache duration for api
2024-04-09 10:10:20 -04:00
087684658a
Cache result of LocalSite::read to avoid unnecessary db calls ( #4585 )
...
* Cache result of LocalSite::read to avoid unnecessary db calls
* single const for cache duration
* clippy
* revert apub send changes
* clippy
* fmt
2024-04-03 17:38:31 -04:00
Dessalines
0f77951e05
Upgrading deps. ( #4537 )
...
* Upgrading deps.
* Addressing PR comments
2024-03-18 10:36:49 +01:00
c895e57086
Remove unneeded error "last successful id is higher than latest id" ( fixes #4363 ) ( #4486 )
2024-03-01 11:31:37 -05:00
SleeplessOne1917
4b4b99aa78
Allow community mods to see votes in addition to admins ( #4392 )
...
* Allow community mods to see votes in addition to admins
* Use Post instead of PostView
---------
Co-authored-by: SleeplessOne1917 <insomnia-void@protonmail.com>
2024-01-23 18:47:28 -05:00
b58da11fb7
Mark instance as alive after successful activity send ( fixes #4039 ) ( #4377 )
...
* Mark instance as alive after successful activity send (fixes #4039 )
* clippy
* Instance::update
* domain
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2024-01-19 09:40:12 -05:00
4ca63c5641
Move apub context to join-lemmy.org ( fixes #4234 ) ( #4302 )
...
* Move apub context to join-lemmy.org (fixes #4234 )
* Dont store federation context in sent_activity table
* include basic activitypub context
* update lib
* ci
2024-01-05 15:42:46 +01:00
phiresky
0e6669f617
no endless loop if queue too recent ( #4349 )
2024-01-04 13:28:26 -05:00
phiresky
024ab7d530
Fix federate loop ( #4330 )
...
* make activity channel infallible
* clippy
* federate: make cancellabletask loop itself
2024-01-03 13:30:06 -05:00
SleeplessOne1917
4ef00e068f
Prevent crates that shouldn't be published from being published ( #4309 )
...
* Prevent crates that shouldn't be published from being published
* Make dependent crates publishable
* Make dependent crates publishable
* fix toml formatting
* Removing publish=true
* Removing versioned deps.
---------
Co-authored-by: SleeplessOne1917 <insomnia-void@protonmail.com>
Co-authored-by: Dessalines <tyhou13@gmx.com>
2023-12-20 09:11:58 -05:00
phiresky
6790b54d4d
make activity channel infallible ( #4295 )
2023-12-18 13:17:10 -05:00
phiresky
7353be5b68
federate-less-noisy ( #4263 )
2023-12-14 07:25:04 -05:00
c7ee53026f
Upgrade dependencies ( #4248 )
...
* Upgrade dependencies
* clippy
2023-12-12 08:56:33 -05:00
Dessalines
2b5a31b411
Upgrading deps. ( #4196 )
...
* Upgrading deps.
* Try to use native node-fetch function.
* Fixing image upload tests.
2023-11-24 10:29:41 +01:00
dullbananas
30f7135f32
Use rust 1.74.0 in CI and move clippy lints to Cargo.toml ( #4170 )
...
* ci rust 1.74.0
* do it
* Update .woodpecker.yml
* Update Cargo.toml
* Update lint.sh
* Update lib.rs
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-11-21 08:51:22 -05:00
cetra3
1c03a86c17
Upgrade activitypub to 0.5.0-beta.5
( #4179 )
...
* Remove anyhow test
* Update lock
* Fix lints hopefully!
2023-11-21 10:26:12 +01:00
phiresky
b9b65c9c18
add federation queue state to get_federated_instances api ( #4104 )
...
* add federation queue state to get_federated_instances api
* feature gate
* move retry sleep function
* move stuff around
2023-11-06 16:07:04 -05:00
9007d49324
Remove unused deps ( #4111 )
...
* Remove unused deps
* Adding cargo-machete to woodpecker.
---------
Co-authored-by: Dessalines <tyhou13@gmx.com>
2023-10-31 11:11:12 +01:00
Dessalines
bd9739b5b7
Upgrading deps. ( #4103 )
2023-10-25 05:32:21 -04:00
phiresky
2c283d90ca
Revert "Revert "re-remove debug comments""
...
This reverts commit 6d519ef376
.
2023-09-21 11:45:33 +00:00
phiresky
dec25f9ee8
ensure overlap
2023-09-21 11:11:54 +00:00
phiresky
6d519ef376
Revert "re-remove debug comments"
...
This reverts commit ae37ca0137
.
2023-09-21 11:07:36 +00:00
phiresky
ae37ca0137
re-remove debug comments
2023-09-20 15:33:09 +00:00
phiresky
a808d3208a
use max(id) instead of seq max value to prevent uncommitted transactions from causing skipped activities
2023-09-20 14:57:18 +00:00
phiresky
1a0c866b51
logging temporary
2023-09-20 13:37:18 +00:00
phiresky
a59a94492d
more debug log
2023-09-20 12:30:38 +00:00
phiresky
9e886fba4a
delay shorter
2023-09-18 16:49:55 +00:00
phiresky
b09ffa7197
instead of changing fed delays in debug mode, change them via env variable
2023-09-13 11:23:13 +00:00
phiresky
dca43dcfd9
fix a bug where after an hour community follows would be overwritten completely by an incremental upgrade
2023-09-13 10:54:10 +00:00
4f1240487e
Fixing high CPU usage on federation worker recheck. Fixes #3958
2023-09-12 15:54:49 -04:00