]> Untitled Git - lemmy.git/commit
implement ActivitySender actor (#89)
authornutomic <nutomic@noreply.yerbamate.dev>
Mon, 31 Aug 2020 13:48:02 +0000 (13:48 +0000)
committerdessalines <dessalines@noreply.yerbamate.dev>
Mon, 31 Aug 2020 13:48:02 +0000 (13:48 +0000)
commitd4dccd17aea1acd711b524e9c0adcbb02237a209
treef22ded4c34b6c4f7d1c7739f91e9a428671645f9
parent18002bc837d25bd08e1e6ed9bb85f0d9105437a6
implement ActivitySender actor (#89)

Merge pull request 'Adding unique ap_ids. Fixes #1100' (#90) from unique_ap_ids into activity-sender

Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/90

Adding back in on_conflict.

Trying to add back in the on_conflict_do_nothing.

Trying to reduce delay time.

Removing createFakes.

Removing some unit tests.

Adding comment jest timeout.

Fixing tests again.

Fixing tests again.

Merge branch 'activity-sender' into unique_ap_ids_2

Replace actix client with reqwest to speed up federation tests

Trying to fix tests again.

Fixing unit tests.

Fixing some broken unit tests, not done yet.

Adding uniques.

Adding unique ap_ids. Fixes #1100

use proper sql functionality for upsert

added logging

in fetcher, replace post/comment::create with upsert

no need to do an actual update in post/comment::upsert

Merge branch 'main' into activity-sender

implement upsert for user/community

reuse http client

got it working

attempt to use background-jobs crate

rewrite with proper error handling and less boilerplate

remove do_send, dont return errors from activity_sender

WIP: implement ActivitySender actor

Co-authored-by: dessalines <dessalines@noreply.yerbamate.dev>
Co-authored-by: Dessalines <tyhou13@gmx.com>
Co-authored-by: Felix Ableitner <me@nutomic.com>
Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/89
46 files changed:
server/Cargo.lock
server/Cargo.toml
server/lemmy_db/src/activity.rs
server/lemmy_db/src/comment.rs
server/lemmy_db/src/comment_view.rs
server/lemmy_db/src/community.rs
server/lemmy_db/src/moderator.rs
server/lemmy_db/src/password_reset_request.rs
server/lemmy_db/src/post.rs
server/lemmy_db/src/post_view.rs
server/lemmy_db/src/private_message.rs
server/lemmy_db/src/schema.rs
server/lemmy_db/src/user.rs
server/lemmy_db/src/user_mention.rs
server/migrations/2020-08-25-132005_add_unique_ap_ids/down.sql [new file with mode: 0644]
server/migrations/2020-08-25-132005_add_unique_ap_ids/up.sql [new file with mode: 0644]
server/src/api/comment.rs
server/src/api/community.rs
server/src/api/post.rs
server/src/api/user.rs
server/src/apub/activities.rs
server/src/apub/activity_queue.rs [new file with mode: 0644]
server/src/apub/comment.rs
server/src/apub/community.rs
server/src/apub/extensions/signatures.rs
server/src/apub/fetcher.rs
server/src/apub/inbox/activities/delete.rs
server/src/apub/inbox/activities/remove.rs
server/src/apub/inbox/activities/undo.rs
server/src/apub/inbox/shared_inbox.rs
server/src/apub/inbox/user_inbox.rs
server/src/apub/mod.rs
server/src/apub/post.rs
server/src/apub/private_message.rs
server/src/apub/user.rs
server/src/code_migrations.rs
server/src/lib.rs
server/src/main.rs
server/src/request.rs
server/src/websocket/server.rs
ui/src/api_tests/comment.spec.ts
ui/src/api_tests/community.spec.ts
ui/src/api_tests/follow.spec.ts
ui/src/api_tests/post.spec.ts
ui/src/api_tests/private_message.spec.ts
ui/src/api_tests/shared.ts