mirror of
http://gitea.phreedom.club/localhost_frssoft/pleroma-cli
synced 2025-01-12 02:19:31 +00:00
some fixes; cancel remove content from json
This commit is contained in:
parent
190f164da2
commit
d334ba8bb6
|
@ -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")
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue