From 89b2b06694a0f524b3880f72b6f0198f1ede717a Mon Sep 17 00:00:00 2001 From: fred Date: Fri, 24 Nov 2023 19:01:00 +0100 Subject: [PATCH] PIN _canonical_uri in case of multi signed Tiddlers --- RUNTIME/G1PalPay.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/RUNTIME/G1PalPay.sh b/RUNTIME/G1PalPay.sh index cae388587..09f17c1a9 100755 --- a/RUNTIME/G1PalPay.sh +++ b/RUNTIME/G1PalPay.sh @@ -211,7 +211,8 @@ while read LINE; do TCREATED=$(echo ${LINE} | jq -r .created) TTITLE=$(echo ${LINE} | jq -r .title) TTAGS=$(echo ${LINE} | jq -r .tags) - TOPIN=$(echo ${LINE} | jq -r .ipfs) + TOPIN=$(echo ${LINE} | jq -r .ipfs) ## Tiddler produced by "Astroport Desktop" + [[ -z ${TOPIN} ]] && TOPIN=$(echo ${LINE} | jq -r ._canonical_uri) ## Tiddler is exported to IPFS echo "$TTITLE"