minilauta / miniboard

Minimalistic oldschool imageboard software
MIT License
7 stars 5 forks source link

Implement automatic thread deletion #30

Closed Anonyymi closed 1 year ago

Anonyymi commented 1 year ago
denamuumi commented 1 year ago

Hello, I can start working on this.

Anonyymi commented 1 year ago

Hello, I can start working on this.

How are you planning to implement this?

denamuumi commented 1 year ago

The limit of threads is presumably per board already defined in config.php as max_threads?

This can be implemented with a function that runs and updates the board thread listing on certain events which are

Anonyymi commented 1 year ago

Yes it's max_threads. Event based solution sounds fine to me.

Anonyymi commented 1 year ago

@denamuumi Isn't "new thread created" the only event required for this to work? Those other events just shuffle existing threads around.

Anonyymi commented 1 year ago

@denamuumi I'm working on massive refactor while also working on post hiding. I'm sorry about that...

Anonyymi commented 1 year ago

This is now done. Threads are deleted completely, no need to keep them in database or on disk.