some fixes; cancel remove content from json

This commit is contained in:
localhost_frssoft 2022-08-07 16:26:40 +03:00
parent 190f164da2
commit d334ba8bb6
2 changed files with 1 additions and 2 deletions

View file

@ -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")

View file

@ -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