Commit graph

4940 commits

Author SHA1 Message Date
phiresky
20ab8e2c0e format 2024-07-18 18:01:07 +02:00
phiresky
0abc7f41b4 fix inboxes tests under fast mode 2024-07-18 17:48:20 +02:00
phiresky
d8f9152387 fix recheck time 2024-07-18 17:09:08 +02:00
phiresky
bda834eeff
Update .woodpecker.yml 2024-07-17 15:26:31 +02:00
phiresky
80e0318810 format 2024-07-17 01:00:06 +02:00
phiresky
b487fa0437 reuse vars 2024-07-16 20:48:24 +02:00
phiresky
c60cf5a657 fix some comments 2024-07-16 20:23:34 +02:00
phiresky
9c85ce9b19 don't reset fail count if activity skipped 2024-07-16 20:11:11 +02:00
phiresky
481e39b4aa actor max length 2024-07-15 19:48:47 +02:00
phiresky
c32d05c54e lint 2024-07-15 18:47:55 +02:00
phiresky
ec859fe148 add federate inboxes collector tests 2024-07-15 17:50:04 +02:00
phiresky
4849ac0138 handle todo about smooth exit 2024-07-15 16:42:57 +02:00
phiresky
5ab598a6f0 some more cleanup 2024-07-15 16:35:41 +02:00
phiresky
373e61969d remove else below continue 2024-07-15 16:22:33 +02:00
phiresky
10758ab8ea update test todo comment, use same env var as worker test but default to 1 2024-07-15 16:18:47 +02:00
phiresky
9d470b7b03 move more things to members 2024-07-15 16:15:09 +02:00
phiresky
694c293f1c move sender for clarity, add comment 2024-07-15 15:57:13 +02:00
phiresky
dda528bd75 comment about https://github.com/LemmyNet/lemmy/pull/4623#discussion_r1565437391 2024-07-15 15:40:57 +02:00
phiresky
0eec62f398 Merge remote-tracking branch 'origin/main' into federation-send-parallel 2024-07-15 15:05:31 +02:00
Dessalines
6ff128341c
Do pictrs transformations for proxied image urls. (#4895)
- Fixes #4893
2024-07-11 17:31:31 +02:00
phiresky
69ead52eb8 lint 2024-07-11 15:35:20 +02:00
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
Dessalines
53a226b944
Add show_nsfw override filter to GetPosts. (#4889)
- Fixes #4124
2024-07-09 13:44:23 -04:00
phiresky
c2dab71377 Merge remote-tracking branch 'origin/main' into federation-send-parallel 2024-07-09 18:19:22 +02:00
Dessalines
f229f09f92
Changing nodeinfo test from voyager.lemmy.ml to lemmy.ml (#4891)
- Fixes #4870
2024-07-07 19:01:03 -04: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
renovate[bot]
117a8b42c8
Update Rust crate serde_json to v1.0.120 (#4877)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-02 10:02:32 -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
renovate[bot]
d90e8f8550
Update Rust crate clap to v4.5.8 (#4876)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-02 09:37:37 -04:00
Richard Schwab
2c57f42022
Relax timeout for sending activities (#4864)
* Relax timeout for sending activities

Lemmy considers timeouts during activity sending as retryable errors.
While it is frequently enough to retry sending the same activity again after
the original submission attempt resulted in a timeout, allowing the receiving
side to use more time for synchronous processing should reduce the number of
retries needed overall and improve overall compatibility.

Some ActivityPub software, such as Mastodon, implements a queue for processing
received activities asynchronously, which allows immediately returning a
response for activity submissions. Other software, such as Lemmy or Hubzilla
implement synchronous processing of activities before returning a response.

ActivityPub does not specify specific timeouts to be used:
https://github.com/w3c/activitypub/issues/365

* Simplify usage of federation_sender_config Option
2024-07-02 09:30:13 -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
dullbananas
9120207314
Format replaceable_schema files in lint.sh (#4868) 2024-06-26 10:47:09 +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
Dessalines
c8d155102a
Removing renovate from git cliff (#4858)
* Removing renovate from git cliff

* Formatting.
2024-06-21 17:38:44 -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
59f274e531
Revert "Removing renovate schedule. (#4808)" (#4847)
This reverts commit 65620913fc.
2024-06-18 16:55:06 -04:00
fa143f72eb Version 0.19.5-alpha.3 2024-06-18 11:49:02 -04:00
Dessalines
63a824a2ed
Fixing TLS connection by installing provider. (#4844)
- Fixes #4795
2024-06-18 09:59:24 -04:00
renovate[bot]
b9dc7612a8
Update dependency @types/node to v20.14.5 (#4843)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-18 10:11:20 +00:00
renovate[bot]
393f65db8d
Update dependency @types/node to v20.14.4 (#4842)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-17 20:59:40 -04:00