diff options
author | metamuffin <metamuffin@disroot.org> | 2024-01-25 21:37:45 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-01-25 21:37:45 +0100 |
commit | 77f13e01943374ceb970d8c29640781453d5b7e1 (patch) | |
tree | cb05409d1c3d566e229d1789eb4a1ed50e91533c /import | |
parent | 75ab384426ceaef0ef9c117cd180e4c52a5e8f96 (diff) | |
download | jellything-77f13e01943374ceb970d8c29640781453d5b7e1.tar jellything-77f13e01943374ceb970d8c29640781453d5b7e1.tar.bz2 jellything-77f13e01943374ceb970d8c29640781453d5b7e1.tar.zst |
maybe fix fed property on local nodes
Diffstat (limited to 'import')
-rw-r--r-- | import/src/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
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<Node> { .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), }, |