Skip to content

Commit

Permalink
Merge pull request #3 from kozakura913/main
Browse files Browse the repository at this point in the history
プレイヤーが無効であっても構造を追加する
  • Loading branch information
kozakura913 authored Apr 25, 2024
2 parents 086c3b5 + 1221cdf commit 274ef62
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,9 +309,13 @@ async fn get_file(
}
}
//すべての有効なプレイヤーにはurlが存在する
/*
if player.url.is_some(){
resp.player=Some(player);
}
*/
//プレイヤーが無効であっても構造を追加する
resp.player=Some(player);
if let Some(icon)=&resp.icon{
if icon.starts_with("/"){
resp.icon=Some(format!("{}{}",base_url,icon));
Expand Down

0 comments on commit 274ef62

Please sign in to comment.