};
use lemmy_db_views::structs::{
CommentView,
- LocalUserSettingsView,
+ CustomEmojiView,
+ 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>,
pub federated_instances: Option<FederatedInstances>, // Federation may be disabled
pub all_languages: Vec<Language>,
pub discussion_languages: Vec<LanguageId>,
- pub taglines: Option<Vec<Tagline>>,
+ pub taglines: Vec<Tagline>,
+ pub custom_emojis: Vec<CustomEmojiView>,
}
#[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>,