use crate::sensitive::Sensitive;
use lemmy_db_schema::{
newtypes::{CommentId, CommunityId, LanguageId, PersonId, PostId},
- source::{language::Language, local_site::RegistrationMode, tagline::Tagline},
+ source::{
+ instance::Instance,
+ language::Language,
+ local_site::RegistrationMode,
+ tagline::Tagline,
+ },
ListingType,
ModlogActionType,
SearchType,
};
use lemmy_db_views::structs::{
CommentView,
- LocalUserSettingsView,
+ LocalUserView,
PostView,
RegistrationApplicationView,
SiteView,
CommunityModeratorView,
CommunityView,
PersonBlockView,
- PersonViewSafe,
+ PersonView,
};
use lemmy_db_views_moderator::structs::{
AdminPurgeCommentView,
pub comments: Vec<CommentView>,
pub posts: Vec<PostView>,
pub communities: Vec<CommunityView>,
- pub users: Vec<PersonViewSafe>,
+ pub users: Vec<PersonView>,
}
#[derive(Debug, Serialize, Deserialize, Clone, Default)]
pub comment: Option<CommentView>,
pub post: Option<PostView>,
pub community: Option<CommunityView>,
- pub person: Option<PersonViewSafe>,
+ pub person: Option<PersonView>,
}
#[derive(Debug, Serialize, Deserialize, Clone, Default)]
#[derive(Debug, Serialize, Deserialize, Clone)]
pub struct GetSiteResponse {
pub site_view: SiteView,
- pub admins: Vec<PersonViewSafe>,
+ pub admins: Vec<PersonView>,
pub online: usize,
pub version: String,
pub my_user: Option<MyUserInfo>,
#[derive(Debug, Serialize, Deserialize, Clone)]
pub struct MyUserInfo {
- pub local_user_view: LocalUserSettingsView,
+ pub local_user_view: LocalUserView,
pub follows: Vec<CommunityFollowerView>,
pub moderates: Vec<CommunityModeratorView>,
pub community_blocks: Vec<CommunityBlockView>,
#[derive(Debug, Serialize, Deserialize, Clone)]
pub struct FederatedInstances {
- pub linked: Vec<String>,
- pub allowed: Option<Vec<String>>,
- pub blocked: Option<Vec<String>>,
+ pub linked: Vec<Instance>,
+ pub allowed: Option<Vec<Instance>>,
+ pub blocked: Option<Vec<Instance>>,
}
#[derive(Debug, Serialize, Deserialize, Clone)]