diff --git a/crates/api/src/community.rs b/crates/api/src/community.rs index 1378029df..ac39751c8 100644 --- a/crates/api/src/community.rs +++ b/crates/api/src/community.rs @@ -22,7 +22,6 @@ use lemmy_apub::{ objects::{community::ApubCommunity, person::ApubPerson}, }; use lemmy_db_schema::{ - impls::community::CommunityModerator_, source::{ comment::Comment, community::{ diff --git a/crates/apub/src/activities/community/add_mod.rs b/crates/apub/src/activities/community/add_mod.rs index 52923036d..e1cf03e0d 100644 --- a/crates/apub/src/activities/community/add_mod.rs +++ b/crates/apub/src/activities/community/add_mod.rs @@ -25,7 +25,6 @@ use lemmy_apub_lib::{ values::PublicUrl, }; use lemmy_db_schema::{ - impls::community::CommunityModerator_, source::community::{CommunityModerator, CommunityModeratorForm}, traits::Joinable, }; diff --git a/crates/db_schema/src/impls/community.rs b/crates/db_schema/src/impls/community.rs index bd45ae316..b2ebb3a0a 100644 --- a/crates/db_schema/src/impls/community.rs +++ b/crates/db_schema/src/impls/community.rs @@ -204,19 +204,8 @@ impl DeleteableOrRemoveable for Community { } } -pub trait CommunityModerator_ { - fn delete_for_community( - conn: &PgConnection, - for_community_id: CommunityId, - ) -> Result; - fn get_person_moderated_communities( - conn: &PgConnection, - for_person_id: PersonId, - ) -> Result, Error>; -} - -impl CommunityModerator_ for CommunityModerator { - fn delete_for_community( +impl CommunityModerator { + pub fn delete_for_community( conn: &PgConnection, for_community_id: CommunityId, ) -> Result { @@ -224,7 +213,7 @@ impl CommunityModerator_ for CommunityModerator { diesel::delete(community_moderator.filter(community_id.eq(for_community_id))).execute(conn) } - fn get_person_moderated_communities( + pub fn get_person_moderated_communities( conn: &PgConnection, for_person_id: PersonId, ) -> Result, Error> {