From 77f13e01943374ceb970d8c29640781453d5b7e1 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Thu, 25 Jan 2024 21:37:45 +0100 Subject: maybe fix fed property on local nodes --- import/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/import/src/lib.rs b/import/src/lib.rs index f6daa42..83cf9b4 100644 --- a/import/src/lib.rs +++ b/import/src/lib.rs @@ -116,6 +116,7 @@ pub fn merge_nodes(db: &DataAcid) -> anyhow::Result<()> { node.public.id = Some(id.value().to_owned()); node.public.path = vec![]; // will be reconstructed in the next pass + node.public.federated = None; // TODO this discardes a lot of information. maybe change this. if let Some(media) = &node.public.media { @@ -642,7 +643,7 @@ fn merge_node(x: Node, y: Node) -> anyhow::Result { .into_iter() .chain(y.public.ratings) .collect(), - federated: x.public.federated.or(y.public.federated), + federated: None, poster: x.public.poster.or(y.public.poster), backdrop: x.public.backdrop.or(y.public.backdrop), }, -- cgit v1.2.3-70-g09d2