mirror of
http://gitea.phreedom.club/localhost_frssoft/pleroma-cli
synced 2024-11-24 16:51:27 +00:00
21 lines
557 B
Bash
Executable file
21 lines
557 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# Group statuses by acct and timelines dirs
|
|
|
|
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
|
|
mkdir -m 711 -p "$main_basedir"/statuses/$instance/$acct
|
|
|
|
if [ -n "$status_id" ]; then
|
|
ln -v -s -r "$main_basedir"/all_statuses/$instance/$status_id "$main_basedir"/statuses/$instance/$acct/$status_id
|
|
|
|
ln -v -s -r "$main_basedir"/all_statuses/$instance/$status_id "$main_basedir"/timelines/$instance/$timeline/$status_id
|
|
fi
|
|
done
|
|
|