unpin parents in _unpin_expired()

pull/219/head
Aevann 2023-12-04 15:20:19 +02:00
parent 8483a233c1
commit ea7bef1b71
1 changed files with 2 additions and 0 deletions

View File

@ -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)