Fix not fetching only local communities
This commit is contained in:
parent
a36115d6e6
commit
a366ba9ca1
2 changed files with 5 additions and 5 deletions
src/config
|
@ -1,7 +1,7 @@
|
|||
use std::{fs::{self, OpenOptions}, path::Path, io::Write, thread::sleep, time};
|
||||
|
||||
use lemmy_api_common::{sensitive::Sensitive, post::CreatePost, community::{self, ListCommunities, ListCommunitiesResponse}};
|
||||
use lemmy_db_schema::newtypes::{LanguageId, CommunityId};
|
||||
use lemmy_db_schema::{newtypes::{LanguageId, CommunityId}, ListingType};
|
||||
use serde_derive::{Deserialize, Serialize};
|
||||
use url::Url;
|
||||
|
||||
|
@ -271,6 +271,7 @@ impl CommunitiesVector {
|
|||
pub(crate) fn load(&mut self, auth: &Sensitive<String>, base: &String) {
|
||||
let params = ListCommunities {
|
||||
auth: Some(auth.clone()),
|
||||
type_: Some(ListingType::Local),
|
||||
..Default::default()
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue