mirror of
https://github.com/hicccc77/WeFlow.git
synced 2026-03-24 23:06:51 +00:00
feat(sns-export): add record owner to arkmejson header
This commit is contained in:
@@ -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 = {
|
const exportData = {
|
||||||
exportTime: new Date().toISOString(),
|
exportTime: new Date().toISOString(),
|
||||||
format: 'arkmejson',
|
format: 'arkmejson',
|
||||||
schemaVersion: '1.0.0',
|
schemaVersion: '1.0.0',
|
||||||
|
recordOwner,
|
||||||
mediaSelection: {
|
mediaSelection: {
|
||||||
images: shouldExportImages,
|
images: shouldExportImages,
|
||||||
livePhotos: shouldExportLivePhotos,
|
livePhotos: shouldExportLivePhotos,
|
||||||
|
|||||||
Reference in New Issue
Block a user