ListingType,
SortType,
};
-use lemmy_db_views_actor::structs::{CommunityModeratorView, CommunityView, PersonViewSafe};
+use lemmy_db_views_actor::structs::{
+ CommunityFollowerView,
+ CommunityModeratorView,
+ CommunityView,
+ PersonViewSafe,
+};
use serde::{Deserialize, Serialize};
#[derive(Debug, Serialize, Deserialize, Clone, Default)]
pub community_view: CommunityView,
}
+#[derive(Debug, Serialize, Deserialize, Clone)]
+pub struct FollowCommunityResponse {
+ pub community_follower_view: CommunityFollowerView,
+}
+
#[derive(Debug, Serialize, Deserialize, Clone, Default)]
pub struct ListCommunities {
pub type_: Option<ListingType>,