rework domain field
Publish image / publish (push) Failing after 13s

This commit is contained in:
Worph
2026-09-02 00:02:48 +02:00
parent 759a336bb8
commit 5f5ed1f483
2 changed files with 346 additions and 64 deletions
+11 -3
View File
@@ -183,12 +183,20 @@ impl Card {
fields.insert("fileType".to_string(), "card".to_string());
let content_kind = self.content_kind();
fields.insert("contentKind".to_string(), content_kind.to_string());
// Third axis: which app the card is destined for. `fileType=card` says
// "no bytes", `contentKind` says which work, `domain` says who wants it
// — meta-watch's wall is a `domain:film|tv` query (METADATA_KEYS.md §1).
// Third and fourth axes: which app the card is destined for, and what
// shape of work it is. `fileType=card` says "no bytes", `contentKind`
// says which work, `domain` says who wants it — meta-watch's wall is a
// `domain:screen` query — and `workForm` says film-or-serial, the split
// `domain` stopped carrying when film and tv merged (METADATA_KEYS.md
// §1, §14.17).
if let Some(domain) = meta_feeder_sdk::domain::domain_for_content_kind(content_kind) {
fields.insert("domain".to_string(), domain.to_string());
}
if let Some(work_form) =
meta_feeder_sdk::domain::work_form_for_content_kind(content_kind)
{
fields.insert("workForm".to_string(), work_form.to_string());
}
fields.insert("title".to_string(), self.title.clone());
// The id bag.