Add G1PUB (publisher g1 key) in TIDDLERS

This commit is contained in:
fred 2022-12-27 12:56:35 +01:00
parent 260650ee0d
commit 1a6fdb1364
2 changed files with 4 additions and 0 deletions

View File

@ -30,6 +30,8 @@ PLAYER="$2"
ASTONAUTENS=$(ipfs key list -l | grep -w $PLAYER | cut -d ' ' -f1)
[[ ! $ASTONAUTENS ]] && echo "ERROR - Clef IPNS $PLAYER introuvable!" && exit 1
G1PUB=$(cat ~/.zen/game/players/$PLAYER/.g1pub)
# Extract tag=tube from TW
MOATS=$(date -u +"%Y%m%d%H%M%S%4N")
@ -209,6 +211,7 @@ if [[ ! ${TIDDLER} ]]; then
"type": "'text/vnd.tiddlywiki'",
"vtratio": "'${VTRATIO}'",
"text": "'$TEXT'",
"g1pub": "'${G1PUB}'",
"mime": "'${MIME}'",
"size": "'${FILE_BSIZE}'",
"filesize": "'${FILE_SIZE}'",

View File

@ -330,6 +330,7 @@ then
"size": "'${FILE_BSIZE}'",
"description": "'${DESCRIPTION}'",
"screenshot": "'/ipfs/${POSTER}'",
"g1pub": "'${G1PUB}'",
"ipfsroot": "'/ipfs/${IPFSREPFILEID}'",
"file": "'${file}'",
"ipfs": "'/ipfs/${IPFSREPFILEID}/${URLENCODE_FILE_NAME}'",