File tree Expand file tree Collapse file tree 1 file changed +0
-25
lines changed
crates/db_schema/src/impls Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Original file line number Diff line number Diff line change @@ -103,31 +103,6 @@ impl Person {
103
103
. await
104
104
}
105
105
106
- /// Lists local community ids for all posts and comments for a given creator.
107
- pub async fn list_local_community_ids (
108
- pool : & mut DbPool < ' _ > ,
109
- for_creator_id : PersonId ,
110
- ) -> Result < Vec < CommunityId > , Error > {
111
- let conn = & mut get_conn ( pool) . await ?;
112
- comment:: table
113
- . inner_join ( post:: table)
114
- . inner_join ( community:: table. on ( post:: community_id. eq ( community:: id) ) )
115
- . filter ( community:: local. eq ( true ) )
116
- . filter ( not ( community:: deleted) )
117
- . filter ( not ( community:: removed) )
118
- . filter ( comment:: creator_id. eq ( for_creator_id) )
119
- . select ( community:: id)
120
- . union (
121
- post:: table
122
- . inner_join ( community:: table)
123
- . filter ( community:: local. eq ( true ) )
124
- . filter ( post:: creator_id. eq ( for_creator_id) )
125
- . select ( community:: id) ,
126
- )
127
- . load :: < CommunityId > ( conn)
128
- . await
129
- }
130
-
131
106
pub async fn check_username_taken ( pool : & mut DbPool < ' _ > , username : & str ) -> LemmyResult < ( ) > {
132
107
use diesel:: dsl:: { exists, select} ;
133
108
let conn = & mut get_conn ( pool) . await ?;
You can’t perform that action at this time.
0 commit comments