Removed direct timeline; more verbose ln; removed change timestamp for folders

This commit is contained in:
localhost_frssoft 2022-08-07 08:05:50 +03:00
parent f44519ee22
commit 1fd4ccb782
2 changed files with 3 additions and 5 deletions

View file

@ -791,7 +791,7 @@ statuses_auto_update()
{
while true; do
echo "Updating statuses..."
for i in home local direct; do
for i in home local; do
echo "checking timeline $i"
timeline="$i"
export instance timeline

View file

@ -9,11 +9,9 @@ for i in $ids; do
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
ln -v -s -r "$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
touch --reference "$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
fi
done