2022-08-05 16:09:45 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Move statuses to acct dirs
|
|
|
|
|
2022-08-05 19:30:48 +00:00
|
|
|
json=$(cat)
|
|
|
|
|
|
|
|
for i in $ids; do
|
|
|
|
status_id=$i
|
|
|
|
acct=$(echo "$json" | jj "#[id=$i].account.acct")
|
2022-08-05 16:09:45 +00:00
|
|
|
mkdir -m 711 -p "$main_basedir"/statuses/$instance/$acct
|
|
|
|
if [ -n "$status_id" ]; then
|
2022-08-05 19:30:48 +00:00
|
|
|
ln -s -r "$main_basedir"/all_statuses/$instance/$status_id "$main_basedir"/statuses/$instance/$acct/$status_id
|
2022-08-05 21:41:28 +00:00
|
|
|
touch --reference "$main_basedir"/all_statuses/$instance/$status_id "$main_basedir"/statuses/$instance/$acct/$status_id
|
2022-08-05 16:09:45 +00:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|