Skip to content

Commit

Permalink
feed filter fix (#255)
Browse files Browse the repository at this point in the history
  • Loading branch information
komal-sai-yral authored Jul 25, 2024
1 parent c9dde55 commit 3d71180
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/posts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ pub async fn get_post_uid<const AUTH: bool>(
"https://customer-2p3jflss4r4hmpnz.cloudflarestream.com/{}/manifest/video.m3u8",
post_uuid,
);
let res = reqwest::Client::default().head(req_url).send().await?;
if res.status() != 200 {
let res = reqwest::Client::default().head(req_url).send().await;
if res.is_err() || (res.is_ok() && res.unwrap().status() != 200) {
return Ok(None);
}

Expand Down

0 comments on commit 3d71180

Please sign in to comment.