1
0
mirror of https://git.ngram.ca/OpenJam/rc-servers synced 2026-08-23 23:08:52 +00:00

Implementing the factory web API

This commit is contained in:
MaxSignal
2026-01-14 06:56:00 +00:00
parent 455b466621
commit 16f0761380
10 changed files with 249 additions and 2 deletions

View File

@@ -85,7 +85,7 @@ impl crate::VehicleFactoryAdapter for ArcAdapter {
id: meta.id as _,
name: meta.name,
description: meta.description,
thumbnail: meta.thumbnail,
thumbnail: self.thumbnail_url(meta.thumbnail, meta.id),
added_by: if self.spoof_users { hex::encode(meta.added_by.as_bytes()) } else { meta.added_by },
added_by_display_name: meta.added_by_display_name,
added_date: crate::traits::parse_rc_date(&meta.added_date).unwrap_or_default(),