mirror of
http://gitea.phreedom.club/localhost_frssoft/pleroma-cli
synced 2024-11-19 01:29:16 +00:00
17 lines
470 B
Bash
Executable file
17 lines
470 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# Move statuses to acct dirs
|
|
|
|
json=$(cat)
|
|
|
|
for i in $ids; do
|
|
status_id=$i
|
|
acct=$(echo "$json" | jj "#[id=$i].account.acct")
|
|
mkdir -m 711 -p "$main_basedir"/statuses/$instance/$acct
|
|
if [ -n "$status_id" ]; then
|
|
ln -s -r "$main_basedir"/all_statuses/$instance/$status_id "$main_basedir"/statuses/$instance/$acct/$status_id
|
|
touch --reference "$main_basedir"/all_statuses/$instance/$status_id "$main_basedir"/statuses/$instance/$acct/$status_id
|
|
fi
|
|
done
|
|
|