diff --git a/src/api/mod.rs b/src/api/mod.rs index 53b805268..785bd601e 100644 --- a/src/api/mod.rs +++ b/src/api/mod.rs @@ -107,11 +107,12 @@ pub(in crate::api) async fn linked_instances(pool: &DbPool) -> Result, LemmyError>>()?; - instances.extend(Settings::get().get_allowed_instances().into_iter()); + instances.append(&mut Settings::get().get_allowed_instances()); instances.retain(|a| { !Settings::get().get_blocked_instances().contains(a) && !a.eq("")