mirror of
http://gitea.phreedom.club/localhost_frssoft/pleroma-cli
synced 2024-11-26 13:01:28 +00:00
Removed direct timeline; more verbose ln; removed change timestamp for folders
This commit is contained in:
parent
f44519ee22
commit
1fd4ccb782
|
@ -791,7 +791,7 @@ statuses_auto_update()
|
||||||
{
|
{
|
||||||
while true; do
|
while true; do
|
||||||
echo "Updating statuses..."
|
echo "Updating statuses..."
|
||||||
for i in home local direct; do
|
for i in home local; do
|
||||||
echo "checking timeline $i"
|
echo "checking timeline $i"
|
||||||
timeline="$i"
|
timeline="$i"
|
||||||
export instance timeline
|
export instance timeline
|
||||||
|
|
|
@ -9,11 +9,9 @@ for i in $ids; do
|
||||||
acct=$(echo "$json" | jj "#[id=$i].account.acct")
|
acct=$(echo "$json" | jj "#[id=$i].account.acct")
|
||||||
mkdir -m 711 -p "$main_basedir"/statuses/$instance/$acct
|
mkdir -m 711 -p "$main_basedir"/statuses/$instance/$acct
|
||||||
if [ -n "$status_id" ]; then
|
if [ -n "$status_id" ]; then
|
||||||
ln -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"/statuses/$instance/$acct/$status_id
|
||||||
touch --reference "$main_basedir"/all_statuses/$instance/$status_id "$main_basedir"/statuses/$instance/$acct/$status_id
|
|
||||||
|
|
||||||
ln -s -r "$main_basedir"/all_statuses/$instance/$status_id "$main_basedir"/timelines/$instance/$timeline/$status_id
|
ln -v -s -r "$main_basedir"/all_statuses/$instance/$status_id "$main_basedir"/timelines/$instance/$timeline/$status_id
|
||||||
touch --reference "$main_basedir"/all_statuses/$instance/$status_id "$main_basedir"/timelines/$instance/$timeline/$status_id
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue