From 0fff1bd21bac5fb0ab2d7dbf686e9b1d8e6be59b Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 20 Jan 2018 21:44:36 +0000 Subject: [PATCH] Don't close twice --- src/freedombone-app-pleroma | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freedombone-app-pleroma b/src/freedombone-app-pleroma index e3917e51..d8646118 100755 --- a/src/freedombone-app-pleroma +++ b/src/freedombone-app-pleroma @@ -105,7 +105,6 @@ function expire_pleroma_posts { echo "\$notice_query=\"DELETE FROM notifications WHERE inserted_at <= '\$oldate 01:01:01'\";" >> $pleroma_expire_posts_script echo 'pg_exec($link, $notice_query);' >> $pleroma_expire_posts_script echo '$rowaff1=pg_affected_rows($link);' >> $pleroma_expire_posts_script - echo 'pg_close($link);' >> $pleroma_expire_posts_script echo '' >> $pleroma_expire_posts_script echo "\$objects_query=\"DELETE FROM objects WHERE inserted_at <= '\$oldate 01:01:01'\";" >> $pleroma_expire_posts_script echo 'pg_exec($link, $objects_query);' >> $pleroma_expire_posts_script @@ -144,6 +143,7 @@ function pleroma_recompile { if [ -f /etc/systemd/system/pleroma.service ]; then systemctl restart pleroma fi + } function logging_on_pleroma {