feat(sns-export): add record owner to arkmejson header

This commit is contained in:
tisonhuang committed 2026-03-04 21:19:10 +08:00
1 parent 6314c0f1d6
commit 3a878dd019
1 file changed
+11
+11
View File
@@ -1413,10 +1413,21 @@ class SnsService {
}
}
const ownerWxid = this.toOptionalString(this.configService.get('myWxid'))
const ownerIdentity = ownerWxid
? await this.resolveContactIdentity(ownerWxid, identityCache)
: null
const recordOwner = ownerIdentity
? { ...ownerIdentity }
: ownerWxid
? { username: ownerWxid, wxid: ownerWxid, displayName: ownerWxid }
: { username: '', wxid: '', displayName: '' }
const exportData = {
exportTime: new Date().toISOString(),
format: 'arkmejson',
schemaVersion: '1.0.0',
recordOwner,
mediaSelection: {
images: shouldExportImages,
livePhotos: shouldExportLivePhotos,