Phuks-co / throat

Open Source link aggregator and discussion platform powering Phuks
https://phuks.co
MIT License
73 stars 32 forks source link

Add an admin option to enable/disable archiving of sticky posts #380

Closed happy-river closed 3 years ago

happy-river commented 3 years ago

Give the admin a new site configuration option, site.archive_sticky_posts, which stops making mods do the busy work of periodically replacing their sticky posts, when the only thing that is wrong with them is an old post date. Mods still have the option of locking a sticky post if they don't want to see comments on it. This new option defaults to enabled, which is the same as the previous behavior.

Improve the code by consolidating all the various checks for post age into one function in misc.py.

The announcement post, if there is one, is now not archived until it is removed as an announcement.

Polsaker commented 3 years ago

Great job!