mirror of
http://gitea.phreedom.club/localhost_frssoft/pleroma-cli
synced 2025-01-12 08:39:30 +00:00
13 lines
462 B
Bash
Executable file
13 lines
462 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# Extract some content from statuses
|
|
|
|
for i in "$main_basedir"/statuses/*/*.json; do
|
|
content=$(jj -i $i content | "$main_basedir"/utils/html_to_txt_render)
|
|
status_id=$(jj -i $i 'id')
|
|
status_date=$(jj -i $i 'created_at')
|
|
touch -d "$status_date" "$main_basedir"/statuses/$status_id
|
|
jj -i $i content | "$main_basedir"/utils/html_to_txt_render > "$main_basedir"/statuses/$status_id/content
|
|
chmod 600 "$main_basedir"/statuses/$status_id/content
|
|
done
|