I think it was something like this:
seq="1337"
ssb_id="$(sbot whoami | jq -r '.id')"
stream=$(sbot createHistoryStream --id $ssb_id | jq -c "select(.value.sequence > $seq) | .value.content")
for msg in $stream; do sbot publish . <<< $msg; done
In this case, seq
should be set to the last message that successfully replicated, which is a point before the fork.
At the time I had an issue where newlines were getting garbled before sbot publish .
, but I think that's fixed in the above version. Please let me know if you use it and whether it gives you any trouble! For safety, it might be wise to add a prompt to sbot publish
since this solution is so experimental.