fix: handle empty media and prompt persistence

This commit is contained in:
2026-09-24 19:51:50 +08:00
parent fb354c9434
commit 6a2ba6a50a
3 changed files with 35 additions and 7 deletions
+3
View File
@@ -114,6 +114,9 @@ async fn refetch(
.iter()
.filter_map(|media| media_to_payload(media, fetched.sensitive))
.collect();
if items.is_empty() {
return Ok(None);
}
// The re-fetch may produce a fresh local file (ugoira / bsky remux): hand it
// to the same keep-alive registry the first fetch uses.
if let Some(dir) = fetched.keep_alive() {