]> Untitled Git - lemmy.git/commit
Dont upsert Instance row every apub fetch (#2771)
authorNutomic <me@nutomic.com>
Wed, 1 Mar 2023 02:36:57 +0000 (03:36 +0100)
committerGitHub <noreply@github.com>
Wed, 1 Mar 2023 02:36:57 +0000 (21:36 -0500)
commitd9e7f0100ad14121b43b89d54b80fb2345d8d83e
treec586f5dceb57cce9a34f1bede5ebd55fc9a3a471
parent3844ac76c32c66a39074dc5ad3cb8b9610ef682c
Dont upsert Instance row every apub fetch (#2771)

This is not necessary because the domain cant change, so we only
need to insert if no row exists for this domain.

Also fetch instance actor when parsing person, not only community

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
31 files changed:
crates/api/src/lib.rs
crates/apub/src/collections/community_moderators.rs
crates/apub/src/objects/community.rs
crates/apub/src/objects/instance.rs
crates/apub/src/objects/person.rs
crates/db_schema/src/aggregates/comment_aggregates.rs
crates/db_schema/src/aggregates/community_aggregates.rs
crates/db_schema/src/aggregates/person_aggregates.rs
crates/db_schema/src/aggregates/post_aggregates.rs
crates/db_schema/src/aggregates/site_aggregates.rs
crates/db_schema/src/impls/activity.rs
crates/db_schema/src/impls/actor_language.rs
crates/db_schema/src/impls/comment.rs
crates/db_schema/src/impls/comment_reply.rs
crates/db_schema/src/impls/community.rs
crates/db_schema/src/impls/federation_allowlist.rs
crates/db_schema/src/impls/federation_blocklist.rs
crates/db_schema/src/impls/instance.rs
crates/db_schema/src/impls/moderator.rs
crates/db_schema/src/impls/password_reset_request.rs
crates/db_schema/src/impls/person.rs
crates/db_schema/src/impls/person_mention.rs
crates/db_schema/src/impls/post.rs
crates/db_schema/src/impls/private_message.rs
crates/db_views/src/comment_report_view.rs
crates/db_views/src/comment_view.rs
crates/db_views/src/post_report_view.rs
crates/db_views/src/post_view.rs
crates/db_views/src/private_message_report_view.rs
crates/db_views/src/registration_application_view.rs
src/code_migrations.rs