feat(themes): persist publisher id in theme manifests

Publishing now stamps the signed-in EZPPFarm user ID into theme.json and saves it before packaging, so installed theme cards can resolve avatars by stable user ID. Older manifests keep the author-name fallback.
This commit is contained in:
HorizonCode committed 2026-11-03 23:45:00 +01:00
1 parent 5eea428802
commit 11aefee7ed
4 files changed
+35 -6

No files matched your search

@@ -3343,7 +3343,8 @@
async function openPublishDialog() {
if (exporting || saving || publishing) return;
if (!$currentUser) {
const user = $currentUser;
if (!user) {
sileo.error({
title: 'Authentication Required',
description:
@@ -3361,8 +3362,12 @@
return;
}
if (dirty) {
await saveTheme({ notify: false });
const authorIdChanged = definition.authorId !== user.id;
if (authorIdChanged) definition.authorId = user.id;
if (dirty || authorIdChanged) {
const saved = await saveTheme({ notify: false });
if (!saved) return;
}
publishThemeId = definition.workshopId ?? '';