]> Untitled Git - lemmy.git/blobdiff - crates/apub/src/lib.rs
Tag posts and comments with language (fixes #440) (#2269)
[lemmy.git] / crates / apub / src / lib.rs
index 64cfa0f831def669b2b8764bc913fa83ca17d301..8fd8588b87ad7ae3bc75f959548724a7ad28e67f 100644 (file)
@@ -40,7 +40,7 @@ fn local_instance(context: &LemmyContext) -> &'static LocalInstance {
       .debug(context.settings().federation.debug)
       // TODO No idea why, but you can't pass context.settings() to the verify_url_function closure
       // without the value getting captured.
-      .verify_url_function(|url| check_apub_id_valid(url, &SETTINGS.to_owned()))
+      .verify_url_function(|url| check_apub_id_valid(url, &SETTINGS))
       .build()
       .expect("configure federation");
     LocalInstance::new(