Add public work read model and smooth puzzle transitions
This commit is contained in:
@@ -702,7 +702,7 @@ pub async fn list_custom_world_gallery(
|
||||
) -> Result<Json<Value>, Response> {
|
||||
let entries = state
|
||||
.spacetime_client()
|
||||
.list_custom_world_gallery_entries()
|
||||
.list_public_work_gallery_entries()
|
||||
.await
|
||||
.map_err(|error| {
|
||||
custom_world_error_response(&request_context, map_custom_world_client_error(error))
|
||||
@@ -713,7 +713,8 @@ pub async fn list_custom_world_gallery(
|
||||
CustomWorldGalleryResponse {
|
||||
entries: entries
|
||||
.into_iter()
|
||||
.map(|entry| map_custom_world_gallery_card_response(&state, entry))
|
||||
.filter(|entry| entry.source_type == "custom-world")
|
||||
.map(|entry| map_public_work_custom_world_gallery_card_response(&state, entry))
|
||||
.collect(),
|
||||
},
|
||||
))
|
||||
|
||||
Reference in New Issue
Block a user