From 6a6c9150141404c4c307b95040e30d1ce16e34e7 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Fri, 31 May 2024 16:38:46 -0400 Subject: [PATCH] Changing NodeInfo metadata to HashMap from vector. Fixes #4762 (#4764) --- crates/routes/src/nodeinfo.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/routes/src/nodeinfo.rs b/crates/routes/src/nodeinfo.rs index f64bb72c5..17ea20948 100644 --- a/crates/routes/src/nodeinfo.rs +++ b/crates/routes/src/nodeinfo.rs @@ -9,6 +9,7 @@ use lemmy_utils::{ VERSION, }; use serde::{Deserialize, Serialize}; +use std::collections::HashMap; use url::Url; pub fn config(cfg: &mut web::ServiceConfig) { @@ -71,7 +72,7 @@ async fn node_info(context: web::Data) -> Result, /// These fields are required by the spec for no reason pub services: Option, - pub metadata: Option>, + pub metadata: Option>, } #[derive(Serialize, Deserialize, Debug, Default)]