From b0fde6dc3969885b7bc786c29d7d07edead444c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Sol=C3=ADs?= Date: Fri, 7 Feb 2025 14:52:43 +0000 Subject: [PATCH] fix: Make item selection more accurate --- friendica-delete-old-users.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/friendica-delete-old-users.sh b/friendica-delete-old-users.sh index fb10489..5bd94da 100755 --- a/friendica-delete-old-users.sh +++ b/friendica-delete-old-users.sh @@ -44,7 +44,7 @@ if [[ -n $(type curl) && -n "${dbengine}" && -n $(type "${dbengine}") && -n $(ty c.\`id\` not in (select \`cid\` from \`user-contact\`) and \ c.\`id\` not in (select \`uid\` from \`user\`) and \ c.\`id\` not in ( select \`contact-id\` from \`group_member\`) and \ - not pending and \`last-item\` < CURDATE() - INTERVAL 1 YEAR" | + c.\`contact-type\` != 4 and not pending and \`last-discovery\` < CURDATE() - INTERVAL 1 YEAR and \`last-item\` < CURDATE() - INTERVAL 1 YEAR" | while read -r lineb nick baseurl; do loop "${lineb}" "${nick}" "${baseurl}" & if [[ $(jobs -r -p | wc -l) -ge $(($(getconf _NPROCESSORS_ONLN) / 2)) ]]; then