Skip to content

Commit

Permalink
Fix fetch instance software version from nodeinfo
Browse files Browse the repository at this point in the history
Fixes #3771
  • Loading branch information
shadone committed Jul 29, 2023
1 parent 963d04b commit c68184b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scheduled_tasks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ fn update_instance_software(conn: &mut PgConnection, user_agent: &str) -> LemmyR
.domain(instance.domain)
.updated(Some(naive_now()))
.software(node_info.software.and_then(|s| s.name))
.version(node_info.version.clone())
.version(node_info.software.and_then(|s| s.version))
.build(),
)
}
Expand Down

0 comments on commit c68184b

Please sign in to comment.