[kemonoparty] add 'revision_hash' metadata (#4706, #4727, #5013)

A SHA1 hexdigest of other relevant metadata fields like
title, content, file and attachment URLs.

This value does NOT reflect which revisions are listed on the website.
Neither does 'edited' or any other metadata field (combinations).
This commit is contained in:
Mike Fährmann
2024-01-16 00:24:30 +01:00
parent 4d6ec6958d
commit 3d68eda4ab
2 changed files with 24 additions and 4 deletions

View File

@@ -177,6 +177,7 @@ __tests__ = (
"revision_id": 142470,
"revision_index": 2,
"revision_hash": "e0e93281495e151b11636c156e52bfe9234c2a40",
},
{
@@ -190,6 +191,7 @@ __tests__ = (
"revision_id": range(134996, 3052965),
"revision_index": range(1, 9),
"revision_hash": r"re:^[0-9a-f]{40}$",
},