This commit is contained in:
seb
2026-10-18 14:39:03 +02:00
parent da2cdd5b23
commit 9e1edd5cad
3 changed files with 6 additions and 16 deletions

View File

@@ -458,14 +458,14 @@ export async function recordOptionsListChangeHistory(runner, { articleId, compan
// MARK: - Images & Media
/** Records image addition to an article. */
export async function recordImageAddHistory(runner, { articleId, companyuserId, date, fullHash, sort }) {
export async function recordImageAddHistory(runner, { articleId, companyuserId, date, fullHash, sort, skelehash }) {
const text = typeof sort === 'number' ? `Bild hinzugefügt (Position ${sort + 1})` : 'Bild hinzugefügt';
return recordArticleHistory(runner, { articleId, companyuserId, date, text, meta: { type: 'image_add', fullHash, sort } });
return recordArticleHistory(runner, { articleId, companyuserId, date, text, meta: { type: 'image_add', fullHash, sort, skelehash } });
}
/** Records image deletion from an article. */
export async function recordImageDeleteHistory(runner, { articleId, companyuserId, date, fullHash }) {
return recordArticleHistory(runner, { articleId, companyuserId, date, text: 'Bild gelöscht', meta: { type: 'image_delete', fullHash } });
export async function recordImageDeleteHistory(runner, { articleId, companyuserId, date, fullHash, skelehash }) {
return recordArticleHistory(runner, { articleId, companyuserId, date, text: 'Bild gelöscht', meta: { type: 'image_delete', fullHash, skelehash } });
}
/** Records image reordering for an article. */