use local blobstore path util function

This commit is contained in:
glyph 2022-02-25 09:08:48 +02:00
parent 799d9de001
commit e3eb3be2e3
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
use golgi::Sbot;
use golgi::{blobs, Sbot};
use peach_lib::sbot::{SbotConfig, SbotStatus};
use rocket::serde::Serialize;
@ -105,7 +105,7 @@ impl ProfileContext {
// determine the path to the blob defined by the value of `context.image`
if let Some(ref blob_id) = context.image {
context.blob_path = match sbot_client.get_blob_path(&blob_id).await {
context.blob_path = match blobs::get_blob_path(&blob_id) {
Ok(id) => Some(id),
Err(_) => None,
}