]> Untitled Git - lemmy.git/commit
Optimize federated language updates to avoid unnecessary db writes (#2786)
authorNutomic <me@nutomic.com>
Thu, 30 Mar 2023 15:03:13 +0000 (17:03 +0200)
committerGitHub <noreply@github.com>
Thu, 30 Mar 2023 15:03:13 +0000 (11:03 -0400)
commit165b19e75c1723bb4617ade7c28791f32d06b7ed
tree1ca2c6c07a84abb5a08e4b1ae9f3952aac685735
parentfdaa2bcf090c3fb1c2c38fe7bac8026ce67457d3
Optimize federated language updates to avoid unnecessary db writes (#2786)

* Optimize federated language updates to avoid unnecessary db writes (fixes #2772)

* fix tests

* fix test, rename functions

---------

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
12 files changed:
Cargo.lock
crates/api/src/site/leave_admin.rs
crates/api_crud/src/community/create.rs
crates/api_crud/src/community/update.rs
crates/api_crud/src/site/read.rs
crates/apub/src/api/read_community.rs
crates/apub/src/objects/instance.rs
crates/db_schema/Cargo.toml
crates/db_schema/src/impls/actor_language.rs
crates/db_schema/src/impls/community.rs
crates/db_schema/src/impls/local_user.rs
crates/db_schema/src/impls/site.rs