diff --git a/HISTORY.rst b/HISTORY.rst index 511d9ef3d029493fce02cfe8139e1c2c042e6b56_SElTVE9SWS5yc3Q=..bc18303669651e95dfa5acf1fb49f4a690f433e1_SElTVE9SWS5yc3Q= 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -45,6 +45,8 @@ - renderer: add 'OnDocRender' hooks +- preview: fix metadata not being passed to rendering engine + 0.8.0 (2024-12-09) ================== diff --git a/restapi/handlers/account-template-preview.go b/restapi/handlers/account-template-preview.go index 511d9ef3d029493fce02cfe8139e1c2c042e6b56_cmVzdGFwaS9oYW5kbGVycy9hY2NvdW50LXRlbXBsYXRlLXByZXZpZXcuZ28=..bc18303669651e95dfa5acf1fb49f4a690f433e1_cmVzdGFwaS9oYW5kbGVycy9hY2NvdW50LXRlbXBsYXRlLXByZXZpZXcuZ28= 100644 --- a/restapi/handlers/account-template-preview.go +++ b/restapi/handlers/account-template-preview.go @@ -54,6 +54,7 @@ Type: template.Produces, Body: template.Body, BodyFormat: template.BodyFormat, + Metadata: template.StaticMetadata.Clone().Update(template.Metadata), }, models.Metadata{}, mimetype,