From a900cec1bfc68fa7ca7fcc8e49d2d51f6cb6b890 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Tue, 10 Aug 2021 19:10:56 -0400 Subject: [PATCH] Rename to local_user_view --- crates/api_common/src/site.rs | 2 +- crates/api_crud/src/site/read.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/api_common/src/site.rs b/crates/api_common/src/site.rs index 0da4b9d6b..d2a94a681 100644 --- a/crates/api_common/src/site.rs +++ b/crates/api_common/src/site.rs @@ -122,7 +122,7 @@ pub struct GetSiteResponse { #[derive(Serialize)] pub struct MyUserInfo { - pub local_user: LocalUserSettingsView, + pub local_user_view: LocalUserSettingsView, pub follows: Vec, pub community_blocks: Vec, pub person_blocks: Vec, diff --git a/crates/api_crud/src/site/read.rs b/crates/api_crud/src/site/read.rs index 58925c7e9..73d1ddfc9 100644 --- a/crates/api_crud/src/site/read.rs +++ b/crates/api_crud/src/site/read.rs @@ -114,7 +114,7 @@ impl PerformCrud for GetSite { .map_err(|_| ApiError::err("system_err_login"))?; Some(MyUserInfo { - local_user: local_user_view, + local_user_view, follows, community_blocks, person_blocks,