From 1fd4ccb78235723c6cb12a80d21e7533cc522664 Mon Sep 17 00:00:00 2001 From: localhost_frssoft Date: Sun, 7 Aug 2022 08:05:50 +0300 Subject: [PATCH] Removed direct timeline; more verbose ln; removed change timestamp for folders --- pleroma-cli.sh | 2 +- utils/statuses2files_group.sh | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/pleroma-cli.sh b/pleroma-cli.sh index 58ad72d..89210f4 100755 --- a/pleroma-cli.sh +++ b/pleroma-cli.sh @@ -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 diff --git a/utils/statuses2files_group.sh b/utils/statuses2files_group.sh index a20c023..2424e79 100755 --- a/utils/statuses2files_group.sh +++ b/utils/statuses2files_group.sh @@ -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