Why Nostr? What is Njump?
2024-07-03 00:48:49

npub1ap…09ps4 on Nostr: commit a8bd5bb413063242250d707f4105b8401ae3b870 Author: randymcmillan ...

commit a8bd5bb413063242250d707f4105b8401ae3b870
Author: randymcmillan <[email protected]>
Date: Tue Jul 2 18:35:17 2024 -0400

template/gnostr-syndicate:padded_parent_hash

diff --git a/template/gnostr-syndicate b/template/gnostr-syndicate
index ba6254e57..cb11a2768 100755
--- a/template/gnostr-syndicate
+++ b/template/gnostr-syndicate
@@ -79,12 +79,19 @@ export COUNT=$count

#new_count = 0
for commit_hash in $(gnostr-reflog);do
+PARENT=$(git rev-parse $commit_hash^1)
+echo $PARENT
#echo $commit_hash
+padded_parent_hash=`printf '%064s' "$PARENT"`
+echo padded_parent_hash=$padded_parent_hash
padded_commit_hash=`printf '%064s' "$commit_hash"`
-#echo $padded_commit_hash
+echo padded_commit_hash=$padded_commit_hash
export NEW_COUNT=$new_count
#n=`printf '%064s' "$(git rev-parse HEAD~$count)"`
-echo $n
+#echo $n
+ID=$(gnostr --sec $padded_commit_hash | gnostr-xq .pubkey)
+ID=${ID//\"/}
+#echo $ID
gnostr --sec $padded_commit_hash \
--pow $POW \
--tag repo $REPO \
@@ -96,6 +103,7 @@ gnostr --sec $padded_commit_hash \
--tag wobble $WOBBLE \
-t $padded_commit_hash \
--tag commit $commit_hash \
+--tag parent $PARENT \
--content "$(git show $commit_hash || exit)" | gnostr-post-event --relay $RELAY || echo "$commit_hash failed!"
##echo $commit_hash;
#for commit_padded_hash in $(gnostr-reflog -p);do
Author Public Key
npub1apqpydcj90kn3s5plxxuserncv5exxpju8hc6npceqs3h7ztzksqt09ps4