From d334ba8bb6481f3158814305ad7bcf7cab67ac2e Mon Sep 17 00:00:00 2001 From: localhost_frssoft Date: Sun, 7 Aug 2022 16:26:40 +0300 Subject: [PATCH] some fixes; cancel remove content from json --- utils/extract_fields_statuses.sh | 1 - utils/statuses2files_group.sh | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/utils/extract_fields_statuses.sh b/utils/extract_fields_statuses.sh index 0687a79..a660f37 100755 --- a/utils/extract_fields_statuses.sh +++ b/utils/extract_fields_statuses.sh @@ -11,7 +11,6 @@ for i in $ids; do # Fields content=$(echo "$json" | jj "#[id=$i].content" | "$main_basedir"/utils/html_to_txt_render) - echo "$json" | jj -D "#[id=$i].content" status_media_attachments=$(echo "$json" | jj -l "#[id=$i].media_attachments.#.url" | tr -d '"\v') reblog=$(echo "$json" | jj -l "#[id=$i].reblog.id") diff --git a/utils/statuses2files_group.sh b/utils/statuses2files_group.sh index 26bac8c..9f2e106 100755 --- a/utils/statuses2files_group.sh +++ b/utils/statuses2files_group.sh @@ -8,7 +8,7 @@ json=$(cat) for i in $ids; do status_id=$i acct=$(echo "$json" | jj "#[id=$i].account.acct") - echo $acct > "$main_basedir"/all_statuses/$instance/$i/acct + echo "$acct" > "$main_basedir"/all_statuses/$instance/$i/acct mkdir -m 711 -p "$main_basedir"/statuses/$instance/$acct if [ -n "$status_id" ]; then