various: add links_extracted_at field to track markdown link extraction time

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Id13c6243de4c0f4fa5a87a13402379906a6a6964
This commit is contained in:
raf 2026-02-09 15:38:11 +03:00
commit d741e8d585
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
5 changed files with 64 additions and 13 deletions

View file

@ -34,6 +34,9 @@ pub struct MediaResponse {
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
// Markdown links
pub links_extracted_at: Option<DateTime<Utc>>,
}
#[derive(Debug, Serialize)]
@ -562,6 +565,9 @@ impl From<pinakes_core::model::MediaItem> for MediaResponse {
created_at: item.created_at,
updated_at: item.updated_at,
// Markdown links
links_extracted_at: item.links_extracted_at,
}
}
}