refactor(x-media): read Fetched::site_id instead of the site_name alias

site_name() only returned the public site_id field; the five callers (the
/debug report, the caption-format lookup on both fetch paths, the per-site
override in urls.rs) read the field now.
This commit is contained in:
2026-09-21 17:16:21 +08:00
parent 4e42855c59
commit c8a32d49c9
4 changed files with 6 additions and 13 deletions
+1 -1
View File
@@ -602,7 +602,7 @@ mod tests {
);
// Empty format falls back to the built-in caption.
assert_eq!(fetched.caption_with(""), fetched.caption);
assert_eq!(fetched.site_name(), "pixiv");
assert_eq!(fetched.site_id, "pixiv");
}
#[test]