From ea7bef1b71cd5c0a66575341435033f1b2f467f3 Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 4 Dec 2023 15:20:19 +0200 Subject: [PATCH] unpin parents in _unpin_expired() --- files/helpers/cron.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/files/helpers/cron.py b/files/helpers/cron.py index 41eda0350..5e07bf317 100644 --- a/files/helpers/cron.py +++ b/files/helpers/cron.py @@ -328,6 +328,8 @@ def _unpin_expired(): pin.stickied = None pin.stickied_utc = None g.db.add(pin) + if isinstance(pin, Comment): + pin.unpin_parents() if pins: cache.delete_memoized(frontlist)